#CFB151#CFB151

#CFB151 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.8% C 0.120 H 92.0°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#CFB151
RGBrgb(207, 177, 81)
HSLhsl(46, 57%, 56%)
HSVhsv(46, 61%, 81%)
CMYKcmyk(0%, 14.5%, 60.9%, 18.8%)
CIE-LABlab(73.09, -0.36, 52.03)
CIE-LCHlch(73.09, 52.03, 90.40°)
OKLaboklab(76.8% -0.0042 0.12)
OKLCHoklch(76.8% 0.12 92)
XYZxyz(42.9414, 45.3060, 14.2661)
Luminance0.4530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB151 #516FCF
analogous
#CF7251 #CFB151 #AECF51
triadic
#CFB151 #51CFB1 #B151CF
tetradic
#CFB151 #51CF72 #516FCF #CF51AE
square
#CFB151 #51CF72 #516FCF #CF51AE
split-complementary
#CFB151 #51AECF #7251CF
monochromatic
#826B24 #B29331 #CFB151 #DCC781 #E9DCB1

Accessibility & contrast

On white

2.09
#CFB151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.06
#CFB151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB151
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB151#FFFFFF#000000##000000
##CFB1511.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE47
Deuteranopia (green-blind)
#CAB755
Tritanopia (blue-blind)
#DFA49C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cfb151;
/* rgb */ color: rgb(207, 177, 81);
/* oklch */ color: oklch(76.8% 0.120 92.0);
Tailwind
colors: {
  custom: {
    50: '#e1c885',
    500: '#cfb151',
    950: '#000000',
  },
}
SCSS
$custom: #cfb151;
$custom-light: #e1c885;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb151",
  "rgb": {
    "r": 207,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 45.714,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.768,
    "c": 0.12007,
    "h": 92
  },
  "luminance": 0.45304
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFB151

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

Preview Lab → · Contrast checker → · Palette generator →

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