#CFC954#CFC954

#CFC954 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.8% C 0.138 H 106.3°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#CFC954
RGBrgb(207, 201, 84)
HSLhsl(57, 56%, 57%)
HSVhsv(57, 59%, 81%)
CMYKcmyk(0%, 2.9%, 59.4%, 18.8%)
CIE-LABlab(79.43, -12.56, 57.71)
CIE-LCHlch(79.43, 59.06, 102.28°)
OKLaboklab(81.84% -0.0388 0.1325)
OKLCHoklch(81.84% 0.138 106.3)
XYZxyz(48.2206, 55.6803, 16.5931)
Luminance0.5568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC954 #545ACF
analogous
#CF8C54 #CFC954 #98CF54
triadic
#CFC954 #54CFC9 #C954CF
tetradic
#CFC954 #54CF8C #545ACF #CF5498
square
#CFC954 #54CF8C #545ACF #CF5498
split-complementary
#CFC954 #5498CF #8C54CF
monochromatic
#847F25 #B3AD32 #CFC954 #DCD884 #EAE7B4

Accessibility & contrast

On white

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

On black

12.14
#CFC954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC954
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC954#FFFFFF#000000##000000
##CFC9541.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C247
Deuteranopia (green-blind)
#DBC75B
Tritanopia (blue-blind)
#DDBDB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc954;
/* rgb */ color: rgb(207, 201, 84);
/* oklch */ color: oklch(81.8% 0.138 106.3);
Tailwind
colors: {
  custom: {
    50: '#e0d989',
    500: '#cfc954',
    950: '#000000',
  },
}
SCSS
$custom: #cfc954;
$custom-light: #e0d989;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc954",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 84
  },
  "hsl": {
    "h": 57.073,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81835,
    "c": 0.13807,
    "h": 106.3
  },
  "luminance": 0.55679
}

Semantic roles & 50–950 ramp

primary
#CFC954
secondary
#3C408B
accent
#50DF48
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC954

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

Preview Lab → · Contrast checker → · Palette generator →

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