#CFC271#CFC271
#CFC271 is a light, moderate yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.103 H 100.3°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC271 |
|---|---|
| RGB | rgb(207, 194, 113) |
| HSL | hsl(52, 49%, 63%) |
| HSV | hsv(52, 45%, 81%) |
| CMYK | cmyk(0%, 6.3%, 45.4%, 18.8%) |
| CIE-LAB | lab(77.90, -6.55, 42.22) |
| CIE-LCH | lch(77.90, 42.73, 98.82°) |
| OKLab | oklab(80.72% -0.0185 0.1017) |
| OKLCH | oklch(80.72% 0.103 100.3) |
| XYZ | xyz(48.0057, 53.0428, 23.3291) |
| Luminance | 0.5304 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.88
Sand (survey)
#E2CA76
ΔE00 4.05
Greenish Beige
#C9D179
ΔE00 6.39
Sandy
#F1DA7A
ΔE00 6.98
Tan (survey)
#D1B26F
ΔE00 7.19
Sand
#C2B280
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC271 #717ECF
analogous
#CF9371 #CFC271 #ADCF71
triadic
#CFC271 #71CFC2 #C271CF
tetradic
#CFC271 #71CF93 #717ECF #CF71AD
square
#CFC271 #71CF93 #717ECF #CF71AD
split-complementary
#CFC271 #71ADCF #9371CF
monochromatic
#948632 #C0AE43 #CFC271 #DED69F #EEE9CC
Accessibility & contrast
On white
1.81
#CFC271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.61
#CFC271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC271
11.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC271 | 1.00 | 1.81 | 11.61 | 11.61 |
| #FFFFFF | 1.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D4C374
Tritanopia (blue-blind)
#DCB8AF
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #cfc271; /* rgb */ color: rgb(207, 194, 113); /* oklch */ color: oklch(80.7% 0.103 100.3);
Tailwind
colors: {
custom: {
50: '#dfd49b',
500: '#cfc271',
950: '#000000',
},
}SCSS
$custom: #cfc271; $custom-light: #dfd49b; $custom-dark: #000000;
JSON
{
"hex": "#cfc271",
"rgb": {
"r": 207,
"g": 194,
"b": 113
},
"hsl": {
"h": 51.702,
"s": 49.474,
"l": 62.745
},
"oklch": {
"l": 0.80722,
"c": 0.10332,
"h": 100.3
},
"luminance": 0.53041
}Semantic roles & 50–950 ramp
primary
#CFC271
secondary
#4B569A
accent
#3DBD29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F