#CFC95B#CFC95B

#CFC95B is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.132 H 106.1°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CFC95B
RGBrgb(207, 201, 91)
HSLhsl(57, 55%, 58%)
HSVhsv(57, 56%, 81%)
CMYKcmyk(0%, 2.9%, 56%, 18.8%)
CIE-LABlab(79.50, -12.05, 54.66)
CIE-LCHlch(79.50, 55.97, 102.43°)
OKLaboklab(81.91% -0.0366 0.1269)
OKLCHoklch(81.91% 0.132 106.1)
XYZxyz(48.5086, 55.7955, 18.1099)
Luminance0.5579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC95B #5B61CF
analogous
#CF8F5B #CFC95B #9BCF5B
triadic
#CFC95B #5BCFC9 #C95BCF
tetradic
#CFC95B #5BCF8F #5B61CF #CF5B9B
square
#CFC95B #5BCF8F #5B61CF #CF5B9B
split-complementary
#CFC95B #5B9BCF #8F5BCF
monochromatic
#888328 #B7B036 #CFC95B #DDD98A #EBE8BA

Accessibility & contrast

On white

1.73
#CFC95B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CFC95B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC95B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC95B#FFFFFF#000000##000000
##CFC95B1.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C250
Deuteranopia (green-blind)
#DBC761
Tritanopia (blue-blind)
#DDBDB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc95b;
/* rgb */ color: rgb(207, 201, 91);
/* oklch */ color: oklch(81.9% 0.132 106.1);
Tailwind
colors: {
  custom: {
    50: '#e0d98d',
    500: '#cfc95b',
    950: '#000000',
  },
}
SCSS
$custom: #cfc95b;
$custom-light: #e0d98d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc95b",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 91
  },
  "hsl": {
    "h": 56.897,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81908,
    "c": 0.13204,
    "h": 106.1
  },
  "luminance": 0.55794
}

Semantic roles & 50–950 ramp

primary
#CFC95B
secondary
#40448F
accent
#51DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC95B

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

Preview Lab → · Contrast checker → · Palette generator →

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