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
Brown in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #a52a2a | |
|---|---|---|
| RGB | rgb(165 42 42) | |
| RGB legacy | rgb(165, 42, 42) | |
| RGB percent | rgb(64.71% 16.47% 16.47%) | |
| HSL | hsl(0 59.4% 40.6%) | |
| HSL legacy | hsl(0, 59.4%, 40.6%) | |
| HSV / HSB | hsv(0, 74.5%, 64.7%) | |
| HWB | hwb(0 16.5% 35.3%) | |
| Nearest name | brown | |
| CMYK | cmyk(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.
| OKLCh | oklch(48.061% 0.15966 25.562)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(48.061% 0.14403 0.06889) | |
| CIE LCh | lch(38.149% 59.598 32.287) | |
| CIE Lab | lab(38.149% 50.384 31.835) | |
| Display P3 | color(display-p3 0.5957 0.2056 0.187) | |
| Rec. 2020 | color(rec2020 0.4841 0.1799 0.124) | |
| srgb-linear | color(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 — sRGB | vec3(0.647, 0.165, 0.165)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.376, 0.023, 0.023)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.647, 0.165, 0.165, 1.0) | |
| GLSL vec4 — linear | vec4(0.376, 0.023, 0.023, 1.0) | |
| GLSL ivec3 | ivec3(165, 42, 42) | |
| HLSL float3 — sRGB | float3(0.647, 0.165, 0.165) | |
| HLSL float3 — linear | float3(0.376, 0.023, 0.023) | |
| HLSL float4 — sRGB | float4(0.647, 0.165, 0.165, 1.0) | |
| HLSL half4 — sRGB | half4(0.647, 0.165, 0.165, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.647, 0.165, 0.165) | |
| WGSL vec4f — sRGB | vec4f(0.647, 0.165, 0.165, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.376, 0.023, 0.023) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new 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 Color32 | new Color32(165, 42, 42, 255) | |
| Unreal FLinearColor | FLinearColor(0.3763f, 0.0232f, 0.0232f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(165, 42, 42, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.647, 0.165, 0.165, 1) | |
| Flutter Color | Color(0xFFA52A2A)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(165, 42, 42) | |
| SwiftUI Color | Color(red: 0.647, green: 0.165, blue: 0.165) | |
| UIKit UIColor | UIColor(red: 0.647, green: 0.165, blue: 0.165, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xA52A2A | |
|---|---|---|
| 0x hex (ARGB) | 0xFFA52A2A | |
| Array 0–1 | [0.647, 0.165, 0.165] | |
| Array 0–255 | [165, 42, 42] | |
| Decimal integer | 10824234 |
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.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Brown on white | 7.08:1 | AAA | Lc 83 | Body text, 18px and up |
| Brown on black | 2.96:1 | Fail | Lc 19 | Not 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 matchfirebrickΔEok 0.026saddlebrownΔEok 0.076siennaΔEok 0.078darkredΔEok 0.082maroonΔEok 0.105