#CFDF40#CFDF40

#CFDF40 is a very light, vivid yellow. Relative luminance 0.664; OKLCH L 86.4% C 0.175 H 115.2°. Best body text is #000000 at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#CFDF40
RGBrgb(207, 223, 64)
HSLhsl(66, 71%, 56%)
HSVhsv(66, 71%, 87%)
CMYKcmyk(7.2%, 0%, 71.3%, 12.5%)
CIE-LABlab(85.21, -24.57, 71.49)
CIE-LCHlch(85.21, 75.59, 108.97°)
OKLaboklab(86.4% -0.0745 0.1586)
OKLCHoklch(86.4% 0.175 115.2)
XYZxyz(53.0467, 66.4118, 14.8738)
Luminance0.6641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFDF40 #5040DF
analogous
#DFA040 #CFDF40 #80DF40
triadic
#CFDF40 #40CFDF #DF40CF
tetradic
#CFDF40 #40DFA0 #5040DF #DF4080
square
#CFDF40 #40DFA0 #5040DF #DF4080
split-complementary
#CFDF40 #4080DF #A040DF
monochromatic
#818D18 #B1C120 #CFDF40 #DCE874 #E9F1A9

Accessibility & contrast

On white

1.47
#CFDF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.28
#CFDF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFDF40
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFDF40#FFFFFF#000000##000000
##CFDF401.001.4714.2814.28
#FFFFFF1.471.0021.0021.00
#00000014.2821.001.001.00
##00000014.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD422
Deuteranopia (green-blind)
#EED64D
Tritanopia (blue-blind)
#DCD2C0
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #cfdf40;
/* rgb */ color: rgb(207, 223, 64);
/* oklch */ color: oklch(86.4% 0.175 115.2);
Tailwind
colors: {
  custom: {
    50: '#e1e87f',
    500: '#cfdf40',
    950: '#000000',
  },
}
SCSS
$custom: #cfdf40;
$custom-light: #e1e87f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfdf40",
  "rgb": {
    "r": 207,
    "g": 223,
    "b": 64
  },
  "hsl": {
    "h": 66.038,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.86404,
    "c": 0.17522,
    "h": 115.2
  },
  "luminance": 0.66411
}

Semantic roles & 50–950 ramp

primary
#CFDF40
secondary
#3B3192
accent
#3AEE4C
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16160B
muted
#84847E

Preview Lab

Preview with #CFDF40

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

Preview Lab → · Contrast checker → · Palette generator →

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