CSS named colour
Chocolate
#d2691e
A CSS named colour: chocolate is valid anywhere a colour is expected.
- RGB
- rgb(210 105 30)
- HSL
- 25°, 75%, 47%
- OKLCh
- 63.4% 0.155 50.3
Chocolate in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #d2691e | |
|---|---|---|
| RGB | rgb(210 105 30) | |
| RGB legacy | rgb(210, 105, 30) | |
| RGB percent | rgb(82.35% 41.18% 11.76%) | |
| HSL | hsl(25 75% 47.1%) | |
| HSL legacy | hsl(25, 75%, 47.1%) | |
| HSV / HSB | hsv(25, 85.7%, 82.4%) | |
| HWB | hwb(25 11.8% 17.6%) | |
| Nearest name | chocolate | |
| CMYK | cmyk(0%, 50%, 85.7%, 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(63.44% 0.15499 50.266)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(63.44% 0.09907 0.11919) | |
| CIE LCh | lch(56.629% 69.656 55.716) | |
| CIE Lab | lab(56.629% 39.237 57.554) | |
| Display P3 | color(display-p3 0.7706 0.434 0.1998) | |
| Rec. 2020 | color(rec2020 0.6693 0.4019 0.1427) | |
| srgb-linear | color(srgb-linear 0.6445 0.1413 0.013)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.3186 0.239 0.0416) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.824, 0.412, 0.118)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.644, 0.141, 0.013)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.824, 0.412, 0.118, 1.0) | |
| GLSL vec4 — linear | vec4(0.644, 0.141, 0.013, 1.0) | |
| GLSL ivec3 | ivec3(210, 105, 30) | |
| HLSL float3 — sRGB | float3(0.824, 0.412, 0.118) | |
| HLSL float3 — linear | float3(0.644, 0.141, 0.013) | |
| HLSL float4 — sRGB | float4(0.824, 0.412, 0.118, 1.0) | |
| HLSL half4 — sRGB | half4(0.824, 0.412, 0.118, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.824, 0.412, 0.118) | |
| WGSL vec4f — sRGB | vec4f(0.824, 0.412, 0.118, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.644, 0.141, 0.013) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.824f, 0.412f, 0.118f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(210, 105, 30, 255) | |
| Unreal FLinearColor | FLinearColor(0.6445f, 0.1413f, 0.013f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(210, 105, 30, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.824, 0.412, 0.118, 1) | |
| Flutter Color | Color(0xFFD2691E)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(210, 105, 30) | |
| SwiftUI Color | Color(red: 0.824, green: 0.412, blue: 0.118) | |
| UIKit UIColor | UIColor(red: 0.824, green: 0.412, blue: 0.118, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xD2691E | |
|---|---|---|
| 0x hex (ARGB) | 0xFFD2691E | |
| Array 0–1 | [0.824, 0.412, 0.118] | |
| Array 0–255 | [210, 105, 30] | |
| Decimal integer | 13789470 |
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 |
|---|---|---|---|---|
| Chocolate on white | 3.63:1 | AA Large | Lc 63 | Headings and large text |
| Chocolate on black | 5.78:1 | AA | Lc 38 | Non-text elements only |
Chocolate text on a white background
Chocolate text on a black background
White text on Chocolate
Black text on Chocolate
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fff1e2
- 100#ffe4cd
- 200#ffcca9
- 300#ffab73
- 400#f28a4a
- 500#d36a1f
- 600#b45000
- 700#963b00
- 800#7b2a00
- 900#631f00
- 950#3d0c00
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#dc834e
- Tint 2#e59c73
- Tint 3#edb596
- Tint 4#f4ceb9
- Tint 5#fae6dc
- Shade 1#a45115
- Shade 2#793a0c
- Shade 3#502405
- Shade 4#2b1002
- Shade 5#0a0200
Colours that work with Chocolate
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #0099d3
- #00a67d
- #8b76e0
- #d85d62
- #b97e00
Closest CSS names
chocolateexact matchperuΔEok 0.061indianredΔEok 0.076darkgoldenrodΔEok 0.082tomatoΔEok 0.092orangeredΔEok 0.093