#CFC242#CFC242

#CFC242 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.145 H 103.5°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CFC242
RGBrgb(207, 194, 66)
HSLhsl(54, 59%, 54%)
HSVhsv(54, 68%, 81%)
CMYKcmyk(0%, 6.3%, 68.1%, 18.8%)
CIE-LABlab(77.43, -10.11, 63.07)
CIE-LCHlch(77.43, 63.88, 99.11°)
OKLaboklab(80.19% -0.0338 0.1412)
OKLCHoklch(80.19% 0.145 103.5)
XYZxyz(46.0092, 52.2442, 12.8138)
Luminance0.5224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC242 #424FCF
analogous
#CF7B42 #CFC242 #95CF42
triadic
#CFC242 #42CFC2 #C242CF
tetradic
#CFC242 #42CF7B #424FCF #CF4295
square
#CFC242 #42CF7B #424FCF #CF4295
split-complementary
#CFC242 #4295CF #7B42CF
monochromatic
#78701F #A99D2B #CFC242 #DBD273 #E8E2A4

Accessibility & contrast

On white

1.83
#CFC242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CFC242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC242
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC242#FFFFFF#000000##000000
##CFC2421.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2F
Deuteranopia (green-blind)
#D7C24A
Tritanopia (blue-blind)
#DEB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc242;
/* rgb */ color: rgb(207, 194, 66);
/* oklch */ color: oklch(80.2% 0.145 103.5);
Tailwind
colors: {
  custom: {
    50: '#e1d47e',
    500: '#cfc242',
    950: '#000000',
  },
}
SCSS
$custom: #cfc242;
$custom-light: #e1d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc242",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 54.468,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.80194,
    "c": 0.14515,
    "h": 103.5
  },
  "luminance": 0.52242
}

Semantic roles & 50–950 ramp

primary
#CFC242
secondary
#353C80
accent
#54E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC242

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

Preview Lab → · Contrast checker → · Palette generator →

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