#CFB152#CFB152

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

Color values

HEX#CFB152
RGBrgb(207, 177, 82)
HSLhsl(46, 57%, 57%)
HSVhsv(46, 60%, 81%)
CMYKcmyk(0%, 14.5%, 60.4%, 18.8%)
CIE-LABlab(73.10, -0.29, 51.57)
CIE-LCHlch(73.10, 51.58, 90.32°)
OKLaboklab(76.81% -0.0039 0.1192)
OKLCHoklch(76.81% 0.119 91.9)
XYZxyz(42.9792, 45.3211, 14.4650)
Luminance0.4532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB152 #5270CF
analogous
#CF7352 #CFB152 #AFCF52
triadic
#CFB152 #52CFB1 #B152CF
tetradic
#CFB152 #52CF73 #5270CF #CF52AF
square
#CFB152 #52CF73 #5270CF #CF52AF
split-complementary
#CFB152 #52AFCF #7352CF
monochromatic
#826C24 #B29331 #CFB152 #DCC782 #EADCB2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFB152#FFFFFF#000000##000000
##CFB1521.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)
#C2AE48
Deuteranopia (green-blind)
#CAB756
Tritanopia (blue-blind)
#DFA49C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cfb152;
/* rgb */ color: rgb(207, 177, 82);
/* oklch */ color: oklch(76.8% 0.119 91.9);
Tailwind
colors: {
  custom: {
    50: '#e1c886',
    500: '#cfb152',
    950: '#000000',
  },
}
SCSS
$custom: #cfb152;
$custom-light: #e1c886;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb152",
  "rgb": {
    "r": 207,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 45.6,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.76811,
    "c": 0.11922,
    "h": 91.9
  },
  "luminance": 0.45319
}

Semantic roles & 50–950 ramp

primary
#CFB152
secondary
#A5B1D8
accent
#6CE048
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CFB152

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

Preview Lab → · Contrast checker → · Palette generator →

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