CSS named colour
Tan
#d2b48c
A CSS named colour: tan is valid anywhere a colour is expected.
- RGB
- rgb(210 180 140)
- HSL
- 34°, 44%, 69%
- OKLCh
- 78.6% 0.064 74.6
Tan in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #d2b48c | |
|---|---|---|
| RGB | rgb(210 180 140) | |
| RGB legacy | rgb(210, 180, 140) | |
| RGB percent | rgb(82.35% 70.59% 54.9%) | |
| HSL | hsl(34.3 43.8% 68.6%) | |
| HSL legacy | hsl(34.3, 43.8%, 68.6%) | |
| HSV / HSB | hsv(34.3, 33.3%, 82.4%) | |
| HWB | hwb(34.3 54.9% 17.6%) | |
| Nearest name | tan | |
| CMYK | cmyk(0%, 14.3%, 33.3%, 17.6%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(78.619% 0.06382 74.619)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(78.619% 0.01693 0.06154) | |
| CIE LCh | lch(75.232% 25.634 74.322) | |
| CIE Lab | lab(75.232% 6.927 24.68) | |
| Display P3 | color(display-p3 0.8043 0.7102 0.5683) | |
| Rec. 2020 | color(rec2020 0.7516 0.6812 0.5262) | |
| srgb-linear | color(srgb-linear 0.6445 0.4564 0.2623)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.4763 0.4824 0.3161) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.824, 0.706, 0.549)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.644, 0.456, 0.262)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.824, 0.706, 0.549, 1.0) | |
| GLSL vec4 — linear | vec4(0.644, 0.456, 0.262, 1.0) | |
| GLSL ivec3 | ivec3(210, 180, 140) | |
| HLSL float3 — sRGB | float3(0.824, 0.706, 0.549) | |
| HLSL float3 — linear | float3(0.644, 0.456, 0.262) | |
| HLSL float4 — sRGB | float4(0.824, 0.706, 0.549, 1.0) | |
| HLSL half4 — sRGB | half4(0.824, 0.706, 0.549, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.824, 0.706, 0.549) | |
| WGSL vec4f — sRGB | vec4f(0.824, 0.706, 0.549, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.644, 0.456, 0.262) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.824f, 0.706f, 0.549f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(210, 180, 140, 255) | |
| Unreal FLinearColor | FLinearColor(0.6445f, 0.4564f, 0.2623f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(210, 180, 140, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.824, 0.706, 0.549, 1) | |
| Flutter Color | Color(0xFFD2B48C)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(210, 180, 140) | |
| SwiftUI Color | Color(red: 0.824, green: 0.706, blue: 0.549) | |
| UIKit UIColor | UIColor(red: 0.824, green: 0.706, blue: 0.549, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xD2B48C | |
|---|---|---|
| 0x hex (ARGB) | 0xFFD2B48C | |
| Array 0–1 | [0.824, 0.706, 0.549] | |
| Array 0–255 | [210, 180, 140] | |
| Decimal integer | 13808780 |
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 |
|---|---|---|---|---|
| Tan on white | 1.97:1 | Fail | Lc 38 | Non-text elements only |
| Tan on black | 10.65:1 | AAA | Lc 64 | Headings and large text |
Tan text on a white background
Tan text on a black background
White text on Tan
Black text on Tan
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fff4d5
- 100#ffe9c9
- 200#f2d8b6
- 300#dcc19d
- 400#c1a47e
- 500#a2865f
- 600#876c48
- 700#6e5634
- 800#594324
- 900#473418
- 950#2b1c05
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#dac09f
- Tint 2#e1cdb2
- Tint 3#e9d9c5
- Tint 4#f0e6d8
- Tint 5#f8f2ec
- Shade 1#a48c6d
- Shade 2#79674f
- Shade 3#504433
- Shade 4#2b2319
- Shade 5#0a0704
Colours that work with Tan
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #9ebce2
- #88c7c6
- #c9aed6
- #ddad98
- #bfbc8d
Closest CSS names
tanexact matchburlywoodΔEok 0.023darkkhakiΔEok 0.056sandybrownΔEok 0.067silverΔEok 0.067darksalmonΔEok 0.076