#CFB251#CFB251

#CFB251 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 77.0% C 0.121 H 92.7°. Best body text is #000000 at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#CFB251
RGBrgb(207, 178, 81)
HSLhsl(46, 57%, 56%)
HSVhsv(46, 61%, 81%)
CMYKcmyk(0%, 14%, 60.9%, 18.8%)
CIE-LABlab(73.35, -0.89, 52.32)
CIE-LCHlch(73.35, 52.33, 90.97°)
OKLaboklab(77.01% -0.0057 0.1206)
OKLCHoklch(77.01% 0.121 92.7)
XYZxyz(43.1397, 45.7025, 14.3322)
Luminance0.4570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB251 #516ECF
analogous
#CF7351 #CFB251 #ADCF51
triadic
#CFB251 #51CFB2 #B251CF
tetradic
#CFB251 #51CF73 #516ECF #CF51AD
square
#CFB251 #51CF73 #516ECF #CF51AD
split-complementary
#CFB251 #51ADCF #7351CF
monochromatic
#826C24 #B29431 #CFB251 #DCC781 #E9DCB1

Accessibility & contrast

On white

2.07
#CFB251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.14
#CFB251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB251
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB251#FFFFFF#000000##000000
##CFB2511.002.0710.1410.14
#FFFFFF2.071.0021.0021.00
#00000010.1421.001.001.00
##00000010.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF47
Deuteranopia (green-blind)
#CAB855
Tritanopia (blue-blind)
#DFA59D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb251;
/* rgb */ color: rgb(207, 178, 81);
/* oklch */ color: oklch(77.0% 0.121 92.7);
Tailwind
colors: {
  custom: {
    50: '#e1c885',
    500: '#cfb251',
    950: '#000000',
  },
}
SCSS
$custom: #cfb251;
$custom-light: #e1c885;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb251",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 81
  },
  "hsl": {
    "h": 46.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.77005,
    "c": 0.12076,
    "h": 92.7
  },
  "luminance": 0.457
}

Semantic roles & 50–950 ramp

primary
#CFB251
secondary
#A4B0D8
accent
#6BE048
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CFB251

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CFB251 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva