#CFC542#CFC542

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

Color values

HEX#CFC542
RGBrgb(207, 197, 66)
HSLhsl(56, 59%, 54%)
HSVhsv(56, 68%, 81%)
CMYKcmyk(0%, 4.8%, 68.1%, 18.8%)
CIE-LABlab(78.22, -11.64, 63.88)
CIE-LCHlch(78.22, 64.93, 100.33°)
OKLaboklab(80.83% -0.0381 0.1429)
OKLCHoklch(80.83% 0.148 104.9)
XYZxyz(46.6836, 53.5930, 13.0386)
Luminance0.5359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC542 #424CCF
analogous
#CF7E42 #CFC542 #92CF42
triadic
#CFC542 #42CFC5 #C542CF
tetradic
#CFC542 #42CF7E #424CCF #CF4292
square
#CFC542 #42CF7E #424CCF #CF4292
split-complementary
#CFC542 #4292CF #7E42CF
monochromatic
#78721F #A9A02B #CFC542 #DBD473 #E8E3A4

Accessibility & contrast

On white

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

On black

11.72
#CFC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC542
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC542#FFFFFF#000000##000000
##CFC5421.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2F
Deuteranopia (green-blind)
#D9C44A
Tritanopia (blue-blind)
#DEB8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc542;
/* rgb */ color: rgb(207, 197, 66);
/* oklch */ color: oklch(80.8% 0.148 104.9);
Tailwind
colors: {
  custom: {
    50: '#e1d67e',
    500: '#cfc542',
    950: '#000000',
  },
}
SCSS
$custom: #cfc542;
$custom-light: #e1d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc542",
  "rgb": {
    "r": 207,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 55.745,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.80828,
    "c": 0.14786,
    "h": 104.9
  },
  "luminance": 0.53591
}

Semantic roles & 50–950 ramp

primary
#CFC542
secondary
#353A80
accent
#50E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC542

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

Preview Lab → · Contrast checker → · Palette generator →

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