#CFD842#CFD842

#CFD842 is a very light, vivid yellow. Relative luminance 0.628; OKLCH L 84.9% C 0.167 H 112.8°. Best body text is #000000 at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#CFD842
RGBrgb(207, 216, 66)
HSLhsl(64, 66%, 55%)
HSVhsv(64, 69%, 85%)
CMYKcmyk(4.2%, 0%, 69.4%, 15.3%)
CIE-LABlab(83.32, -21.09, 68.95)
CIE-LCHlch(83.32, 72.10, 107.01°)
OKLaboklab(84.9% -0.0647 0.1536)
OKLCHoklch(84.9% 0.167 112.8)
XYZxyz(51.2729, 62.7716, 14.5684)
Luminance0.6277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD842 #4B42D8
analogous
#D89642 #CFD842 #84D842
triadic
#CFD842 #42CFD8 #D842CF
tetradic
#CFD842 #42D896 #4B42D8 #D84284
square
#CFD842 #42D896 #4B42D8 #D84284
split-complementary
#CFD842 #4284D8 #9642D8
monochromatic
#7E841B #AEB726 #CFD842 #DCE275 #E9EDA7

Accessibility & contrast

On white

1.55
#CFD842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.55
#CFD842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD842
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD842#FFFFFF#000000##000000
##CFD8421.001.5513.5513.55
#FFFFFF1.551.0021.0021.00
#00000013.5521.001.001.00
##00000013.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE29
Deuteranopia (green-blind)
#E8D14D
Tritanopia (blue-blind)
#DDCBBB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #cfd842;
/* rgb */ color: rgb(207, 216, 66);
/* oklch */ color: oklch(84.9% 0.167 112.8);
Tailwind
colors: {
  custom: {
    50: '#e1e380',
    500: '#cfd842',
    950: '#000000',
  },
}
SCSS
$custom: #cfd842;
$custom-light: #e1e380;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd842",
  "rgb": {
    "r": 207,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 63.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.84898,
    "c": 0.16662,
    "h": 112.8
  },
  "luminance": 0.6277
}

Semantic roles & 50–950 ramp

primary
#CFD842
secondary
#39338B
accent
#3FE949
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD842

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

Preview Lab → · Contrast checker → · Palette generator →

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