#CFD540#CFD540

#CFD540 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.2% C 0.165 H 111.7°. Best body text is #000000 at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#CFD540
RGBrgb(207, 213, 64)
HSLhsl(62, 64%, 54%)
HSVhsv(62, 70%, 84%)
CMYKcmyk(2.8%, 0%, 70%, 16.5%)
CIE-LABlab(82.50, -19.72, 68.86)
CIE-LCHlch(82.50, 71.63, 105.98°)
OKLaboklab(84.24% -0.061 0.153)
OKLCHoklch(84.24% 0.165 111.7)
XYZxyz(50.4534, 61.2253, 14.0094)
Luminance0.6122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD540 #4640D5
analogous
#D59140 #CFD540 #85D540
triadic
#CFD540 #40CFD5 #D540CF
tetradic
#CFD540 #40D591 #4640D5 #D54085
square
#CFD540 #40D591 #4640D5 #D54085
split-complementary
#CFD540 #4085D5 #9140D5
monochromatic
#7B7F1C #ABB127 #CFD540 #DCE072 #E8EBA4

Accessibility & contrast

On white

1.59
#CFD540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.24
#CFD540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD540
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD540#FFFFFF#000000##000000
##CFD5401.001.5913.2413.24
#FFFFFF1.591.0021.0021.00
#00000013.2421.001.001.00
##00000013.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB26
Deuteranopia (green-blind)
#E6CF4B
Tritanopia (blue-blind)
#DDC8B8
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #cfd540;
/* rgb */ color: rgb(207, 213, 64);
/* oklch */ color: oklch(84.2% 0.165 111.7);
Tailwind
colors: {
  custom: {
    50: '#e1e17e',
    500: '#cfd540',
    950: '#000000',
  },
}
SCSS
$custom: #cfd540;
$custom-light: #e1e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd540",
  "rgb": {
    "r": 207,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 62.416,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84236,
    "c": 0.16476,
    "h": 111.7
  },
  "luminance": 0.61224
}

Semantic roles & 50–950 ramp

primary
#CFD540
secondary
#363386
accent
#41E748
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD540

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

Preview Lab → · Contrast checker → · Palette generator →

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