#CFC642#CFC642

#CFC642 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.149 H 105.4°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#CFC642
RGBrgb(207, 198, 66)
HSLhsl(56, 59%, 54%)
HSVhsv(56, 68%, 81%)
CMYKcmyk(0%, 4.3%, 68.1%, 18.8%)
CIE-LABlab(78.49, -12.15, 64.14)
CIE-LCHlch(78.49, 65.28, 100.72°)
OKLaboklab(81.04% -0.0396 0.1434)
OKLCHoklch(81.04% 0.149 105.4)
XYZxyz(46.9114, 54.0486, 13.1146)
Luminance0.5405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC642 #424BCF
analogous
#CF7F42 #CFC642 #91CF42
triadic
#CFC642 #42CFC6 #C642CF
tetradic
#CFC642 #42CF7F #424BCF #CF4291
square
#CFC642 #42CF7F #424BCF #CF4291
split-complementary
#CFC642 #4291CF #7F42CF
monochromatic
#78721F #A9A12B #CFC642 #DBD573 #E8E3A4

Accessibility & contrast

On white

1.78
#CFC642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#CFC642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC642
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC642#FFFFFF#000000##000000
##CFC6421.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DAC54B
Tritanopia (blue-blind)
#DEB9AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc642;
/* rgb */ color: rgb(207, 198, 66);
/* oklch */ color: oklch(81.0% 0.149 105.4);
Tailwind
colors: {
  custom: {
    50: '#e1d77e',
    500: '#cfc642',
    950: '#000000',
  },
}
SCSS
$custom: #cfc642;
$custom-light: #e1d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc642",
  "rgb": {
    "r": 207,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 56.17,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.8104,
    "c": 0.14879,
    "h": 105.4
  },
  "luminance": 0.54047
}

Semantic roles & 50–950 ramp

primary
#CFC642
secondary
#353A80
accent
#4FE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC642

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

Preview Lab → · Contrast checker → · Palette generator →

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