#CFC54E#CFC54E

#CFC54E is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.9% C 0.139 H 104.5°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#CFC54E
RGBrgb(207, 197, 78)
HSLhsl(55, 57%, 56%)
HSVhsv(55, 62%, 81%)
CMYKcmyk(0%, 4.8%, 62.3%, 18.8%)
CIE-LABlab(78.32, -10.93, 59.09)
CIE-LCHlch(78.32, 60.09, 100.48°)
OKLaboklab(80.93% -0.0348 0.1346)
OKLCHoklch(80.93% 0.139 104.5)
XYZxyz(47.0752, 53.7497, 15.1013)
Luminance0.5375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC54E #4E58CF
analogous
#CF844E #CFC54E #98CF4E
triadic
#CFC54E #4ECFC5 #C54ECF
tetradic
#CFC54E #4ECF84 #4E58CF #CF4E98
square
#CFC54E #4ECF84 #4E58CF #CF4E98
split-complementary
#CFC54E #4E98CF #844ECF
monochromatic
#807923 #B0A630 #CFC54E #DCD57E #E9E5AE

Accessibility & contrast

On white

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

On black

11.75
#CFC54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC54E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC54E#FFFFFF#000000##000000
##CFC54E1.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF40
Deuteranopia (green-blind)
#D9C455
Tritanopia (blue-blind)
#DEB8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc54e;
/* rgb */ color: rgb(207, 197, 78);
/* oklch */ color: oklch(80.9% 0.139 104.5);
Tailwind
colors: {
  custom: {
    50: '#e1d685',
    500: '#cfc54e',
    950: '#000000',
  },
}
SCSS
$custom: #cfc54e;
$custom-light: #e1d685;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc54e",
  "rgb": {
    "r": 207,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 55.349,
    "s": 57.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.8093,
    "c": 0.13905,
    "h": 104.5
  },
  "luminance": 0.53748
}

Semantic roles & 50–950 ramp

primary
#CFC54E
secondary
#3A4087
accent
#53E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC54E

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

Preview Lab → · Contrast checker → · Palette generator →

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