#CFC95F#CFC95F

#CFC95F is a light, vivid yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.128 H 105.9°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#CFC95F
RGBrgb(207, 201, 95)
HSLhsl(57, 54%, 59%)
HSVhsv(57, 54%, 81%)
CMYKcmyk(0%, 2.9%, 54.1%, 18.8%)
CIE-LABlab(79.54, -11.74, 52.87)
CIE-LCHlch(79.54, 54.16, 102.52°)
OKLaboklab(81.95% -0.0353 0.1235)
OKLCHoklch(81.95% 0.128 105.9)
XYZxyz(48.6857, 55.8664, 19.0429)
Luminance0.5586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC95F #5F65CF
analogous
#CF915F #CFC95F #9DCF5F
triadic
#CFC95F #5FCFC9 #C95FCF
tetradic
#CFC95F #5FCF91 #5F65CF #CF5F9D
square
#CFC95F #5FCF91 #5F65CF #CF5F9D
split-complementary
#CFC95F #5F9DCF #915FCF
monochromatic
#8A8529 #B9B238 #CFC95F #DDD98E #EBE9BD

Accessibility & contrast

On white

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

On black

12.17
#CFC95F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC95F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC95F#FFFFFF#000000##000000
##CFC95F1.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C255
Deuteranopia (green-blind)
#DBC764
Tritanopia (blue-blind)
#DCBDB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc95f;
/* rgb */ color: rgb(207, 201, 95);
/* oklch */ color: oklch(82.0% 0.128 105.9);
Tailwind
colors: {
  custom: {
    50: '#e0d990',
    500: '#cfc95f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc95f;
$custom-light: #e0d990;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc95f",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 95
  },
  "hsl": {
    "h": 56.786,
    "s": 53.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81954,
    "c": 0.12841,
    "h": 105.9
  },
  "luminance": 0.55865
}

Semantic roles & 50–950 ramp

primary
#CFC95F
secondary
#414691
accent
#52DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #CFC95F

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

Preview Lab → · Contrast checker → · Palette generator →

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