CSS named colour

Brown

#a52a2a

A CSS named colour: brown is valid anywhere a colour is expected.

RGB
rgb(165 42 42)
HSL
0°, 59%, 41%
OKLCh
48.1% 0.160 25.6

Open in the picker

Brown in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#a52a2a
RGBrgb(165 42 42)
RGB legacyrgb(165, 42, 42)
RGB percentrgb(64.71% 16.47% 16.47%)
HSLhsl(0 59.4% 40.6%)
HSL legacyhsl(0, 59.4%, 40.6%)
HSV / HSBhsv(0, 74.5%, 64.7%)
HWBhwb(0 16.5% 35.3%)
Nearest namebrown
CMYKcmyk(0%, 74.5%, 74.5%, 35.3%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(48.061% 0.15966 25.562)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(48.061% 0.14403 0.06889)
CIE LChlch(38.149% 59.598 32.287)
CIE Lablab(38.149% 50.384 31.835)
Display P3color(display-p3 0.5957 0.2056 0.187)
Rec. 2020color(rec2020 0.4841 0.1799 0.124)
srgb-linearcolor(srgb-linear 0.3763 0.0232 0.0232)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.1676 0.0982 0.032)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.647, 0.165, 0.165)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.376, 0.023, 0.023)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.647, 0.165, 0.165, 1.0)
GLSL vec4 — linearvec4(0.376, 0.023, 0.023, 1.0)
GLSL ivec3ivec3(165, 42, 42)
HLSL float3 — sRGBfloat3(0.647, 0.165, 0.165)
HLSL float3 — linearfloat3(0.376, 0.023, 0.023)
HLSL float4 — sRGBfloat4(0.647, 0.165, 0.165, 1.0)
HLSL half4 — sRGBhalf4(0.647, 0.165, 0.165, 1.0)
WGSL vec3f — sRGBvec3f(0.647, 0.165, 0.165)
WGSL vec4f — sRGBvec4f(0.647, 0.165, 0.165, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.376, 0.023, 0.023)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(0.647f, 0.165f, 0.165f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(165, 42, 42, 255)
Unreal FLinearColorFLinearColor(0.3763f, 0.0232f, 0.0232f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(165, 42, 42, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.647, 0.165, 0.165, 1)
Flutter ColorColor(0xFFA52A2A)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(165, 42, 42)
SwiftUI ColorColor(red: 0.647, green: 0.165, blue: 0.165)
UIKit UIColorUIColor(red: 0.647, green: 0.165, blue: 0.165, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xA52A2A
0x hex (ARGB)0xFFA52A2A
Array 0–1[0.647, 0.165, 0.165]
Array 0–255[165, 42, 42]
Decimal integer10824234

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Brown on white7.08:1AAALc 83Body text, 18px and up
Brown on black2.96:1FailLc 19Not usable for text

Brown text on a white background

Brown text on a black background

White text on Brown

Black text on Brown

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#fff0ec
  • 100#ffe2dd
  • 200#ffc9c2
  • 300#ffa69d
  • 400#fb7e76
  • 500#db5d57
  • 600#bb443f
  • 700#9c2e2c
  • 800#821c1d
  • 900#6b0c11
  • 950#450001

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#b8524c
  • Tint 2#c9756e
  • Tint 3#d99891
  • Tint 4#e7bab5
  • Tint 5#f4dcd9
  • Shade 1#811f1f
  • Shade 2#5e1414
  • Shade 3#3d0a0a
  • Shade 4#1f0303
  • Shade 5#060000

Colours that work with Brown

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #006d79
  • #007316
  • #3255b6
  • #9e2961
  • #974200

Closest CSS names

  • brownexact match
  • firebrickΔEok 0.026
  • saddlebrownΔEok 0.076
  • siennaΔEok 0.078
  • darkredΔEok 0.082
  • maroonΔEok 0.105