#CFC54F#CFC54F

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

Color values

HEX#CFC54F
RGBrgb(207, 197, 79)
HSLhsl(55, 57%, 56%)
HSVhsv(55, 62%, 81%)
CMYKcmyk(0%, 4.8%, 61.8%, 18.8%)
CIE-LABlab(78.32, -10.87, 58.67)
CIE-LCHlch(78.32, 59.67, 100.50°)
OKLaboklab(80.94% -0.0345 0.1339)
OKLCHoklch(80.94% 0.138 104.5)
XYZxyz(47.1114, 53.7641, 15.2915)
Luminance0.5376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC54F #4F59CF
analogous
#CF854F #CFC54F #99CF4F
triadic
#CFC54F #4FCFC5 #C54FCF
tetradic
#CFC54F #4FCF85 #4F59CF #CF4F99
square
#CFC54F #4FCF85 #4F59CF #CF4F99
split-complementary
#CFC54F #4F99CF #854FCF
monochromatic
#817923 #B1A730 #CFC54F #DCD57F #E9E5AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFC54F#FFFFFF#000000##000000
##CFC54F1.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)
#D5BF41
Deuteranopia (green-blind)
#D9C456
Tritanopia (blue-blind)
#DDB9AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc54f;
/* rgb */ color: rgb(207, 197, 79);
/* oklch */ color: oklch(80.9% 0.138 104.5);
Tailwind
colors: {
  custom: {
    50: '#e1d685',
    500: '#cfc54f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc54f;
$custom-light: #e1d685;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc54f",
  "rgb": {
    "r": 207,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 55.313,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.8094,
    "c": 0.13825,
    "h": 104.5
  },
  "luminance": 0.53762
}

Semantic roles & 50–950 ramp

primary
#CFC54F
secondary
#3A4088
accent
#53E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC54F

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

Preview Lab → · Contrast checker → · Palette generator →

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