#CFB157#CFB157

#CFB157 is a light, moderate yellow. Relative luminance 0.454; OKLCH L 76.9% C 0.115 H 91.1°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#CFB157
RGBrgb(207, 177, 87)
HSLhsl(45, 56%, 58%)
HSVhsv(45, 58%, 81%)
CMYKcmyk(0%, 14.5%, 58%, 18.8%)
CIE-LABlab(73.15, 0.07, 49.28)
CIE-LCHlch(73.15, 49.28, 89.91°)
OKLaboklab(76.87% -0.0022 0.1148)
OKLCHoklch(76.87% 0.115 91.1)
XYZxyz(43.1764, 45.4000, 15.5038)
Luminance0.4540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB157 #5775CF
analogous
#CF7557 #CFB157 #B1CF57
triadic
#CFB157 #57CFB1 #B157CF
tetradic
#CFB157 #57CF75 #5775CF #CF57B1
square
#CFB157 #57CF75 #5775CF #CF57B1
split-complementary
#CFB157 #57B1CF #7557CF
monochromatic
#856E26 #B59534 #CFB157 #DDC787 #EADDB6

Accessibility & contrast

On white

2.08
#CFB157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.08
#CFB157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB157
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB157#FFFFFF#000000##000000
##CFB1571.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF4E
Deuteranopia (green-blind)
#C9B75B
Tritanopia (blue-blind)
#DEA59D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb157;
/* rgb */ color: rgb(207, 177, 87);
/* oklch */ color: oklch(76.9% 0.115 91.1);
Tailwind
colors: {
  custom: {
    50: '#e0c889',
    500: '#cfb157',
    950: '#000000',
  },
}
SCSS
$custom: #cfb157;
$custom-light: #e0c889;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb157",
  "rgb": {
    "r": 207,
    "g": 177,
    "b": 87
  },
  "hsl": {
    "h": 45,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.76869,
    "c": 0.11485,
    "h": 91.1
  },
  "luminance": 0.45398
}

Semantic roles & 50–950 ramp

primary
#CFB157
secondary
#A9B5D9
accent
#6EDF49
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #CFB157

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

Preview Lab → · Contrast checker → · Palette generator →

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