#CFB25B#CFB25B

#CFB25B is a light, moderate yellow. Relative luminance 0.459; OKLCH L 77.1% C 0.112 H 91.2°. Best body text is #000000 at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#CFB25B
RGBrgb(207, 178, 91)
HSLhsl(45, 55%, 58%)
HSVhsv(45, 56%, 81%)
CMYKcmyk(0%, 14%, 56%, 18.8%)
CIE-LABlab(73.46, -0.15, 47.71)
CIE-LCHlch(73.46, 47.71, 90.17°)
OKLaboklab(77.12% -0.0023 0.1119)
OKLCHoklch(77.12% 0.112 91.2)
XYZxyz(43.5427, 45.8637, 16.4545)
Luminance0.4586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB25B #5B78CF
analogous
#CF785B #CFB25B #B2CF5B
triadic
#CFB25B #5BCFB2 #B25BCF
tetradic
#CFB25B #5BCF78 #5B78CF #CF5BB2
square
#CFB25B #5BCF78 #5B78CF #CF5BB2
split-complementary
#CFB25B #5BB2CF #785BCF
monochromatic
#887028 #B79736 #CFB25B #DDC88A #EBDEBA

Accessibility & contrast

On white

2.06
#CFB25B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.17
#CFB25B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB25B
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB25B#FFFFFF#000000##000000
##CFB25B1.002.0610.1710.17
#FFFFFF2.061.0021.0021.00
#00000010.1721.001.001.00
##00000010.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2B053
Deuteranopia (green-blind)
#CAB85E
Tritanopia (blue-blind)
#DEA69E
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb25b;
/* rgb */ color: rgb(207, 178, 91);
/* oklch */ color: oklch(77.1% 0.112 91.2);
Tailwind
colors: {
  custom: {
    50: '#e0c88c',
    500: '#cfb25b',
    950: '#000000',
  },
}
SCSS
$custom: #cfb25b;
$custom-light: #e0c88c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb25b",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 91
  },
  "hsl": {
    "h": 45,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.77121,
    "c": 0.11189,
    "h": 91.2
  },
  "luminance": 0.45862
}

Semantic roles & 50–950 ramp

primary
#CFB25B
secondary
#ACB7DA
accent
#6FDE4A
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #CFB25B

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

Preview Lab → · Contrast checker → · Palette generator →

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