#CFC45B#CFC45B

#CFC45B is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.9% C 0.127 H 103.3°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#CFC45B
RGBrgb(207, 196, 91)
HSLhsl(54, 55%, 58%)
HSVhsv(54, 56%, 81%)
CMYKcmyk(0%, 5.3%, 56%, 18.8%)
CIE-LABlab(78.17, -9.51, 53.15)
CIE-LCHlch(78.17, 54.00, 100.14°)
OKLaboklab(80.85% -0.0293 0.1236)
OKLCHoklch(80.85% 0.127 103.3)
XYZxyz(47.3619, 53.5022, 17.7276)
Luminance0.5350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC45B #5B66CF
analogous
#CF8A5B #CFC45B #A0CF5B
triadic
#CFC45B #5BCFC4 #C45BCF
tetradic
#CFC45B #5BCF8A #5B66CF #CF5BA0
square
#CFC45B #5BCF8A #5B66CF #CF5BA0
split-complementary
#CFC45B #5BA0CF #8A5BCF
monochromatic
#887F28 #B7AB36 #CFC45B #DDD58A #EBE6BA

Accessibility & contrast

On white

1.79
#CFC45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#CFC45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC45B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC45B#FFFFFF#000000##000000
##CFC45B1.001.7911.7011.70
#FFFFFF1.791.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE50
Deuteranopia (green-blind)
#D7C460
Tritanopia (blue-blind)
#DDB8AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc45b;
/* rgb */ color: rgb(207, 196, 91);
/* oklch */ color: oklch(80.9% 0.127 103.3);
Tailwind
colors: {
  custom: {
    50: '#e0d58d',
    500: '#cfc45b',
    950: '#000000',
  },
}
SCSS
$custom: #cfc45b;
$custom-light: #e0d58d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc45b",
  "rgb": {
    "r": 207,
    "g": 196,
    "b": 91
  },
  "hsl": {
    "h": 54.31,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.80854,
    "c": 0.12706,
    "h": 103.3
  },
  "luminance": 0.53501
}

Semantic roles & 50–950 ramp

primary
#CFC45B
secondary
#40478F
accent
#58DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC45B

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

Preview Lab → · Contrast checker → · Palette generator →

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