#CFC540#CFC540

#CFC540 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.8% C 0.149 H 105.0°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#CFC540
RGBrgb(207, 197, 64)
HSLhsl(56, 60%, 53%)
HSVhsv(56, 69%, 81%)
CMYKcmyk(0%, 4.8%, 69.1%, 18.8%)
CIE-LABlab(78.21, -11.74, 64.63)
CIE-LCHlch(78.21, 65.69, 100.30°)
OKLaboklab(80.81% -0.0386 0.1441)
OKLCHoklch(80.81% 0.149 105)
XYZxyz(46.6257, 53.5698, 12.7335)
Luminance0.5357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC540 #404ACF
analogous
#CF7D40 #CFC540 #91CF40
triadic
#CFC540 #40CFC5 #C540CF
tetradic
#CFC540 #40CF7D #404ACF #CF4091
square
#CFC540 #40CF7D #404ACF #CF4091
split-complementary
#CFC540 #4091CF #7D40CF
monochromatic
#77711E #A89F2A #CFC540 #DBD471 #E8E3A2

Accessibility & contrast

On white

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

On black

11.71
#CFC540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC540
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC540#FFFFFF#000000##000000
##CFC5401.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#DAC449
Tritanopia (blue-blind)
#DEB8AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc540;
/* rgb */ color: rgb(207, 197, 64);
/* oklch */ color: oklch(80.8% 0.149 105.0);
Tailwind
colors: {
  custom: {
    50: '#e1d67d',
    500: '#cfc540',
    950: '#000000',
  },
}
SCSS
$custom: #cfc540;
$custom-light: #e1d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc540",
  "rgb": {
    "r": 207,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 55.804,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.80813,
    "c": 0.1492,
    "h": 105
  },
  "luminance": 0.53568
}

Semantic roles & 50–950 ramp

primary
#CFC540
secondary
#34397F
accent
#50E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC540

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

Preview Lab → · Contrast checker → · Palette generator →

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