#CFC742#CFC742

#CFC742 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.3% C 0.150 H 105.9°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#CFC742
RGBrgb(207, 199, 66)
HSLhsl(57, 59%, 54%)
HSVhsv(57, 68%, 81%)
CMYKcmyk(0%, 3.9%, 68.1%, 18.8%)
CIE-LABlab(78.76, -12.65, 64.41)
CIE-LCHlch(78.76, 65.64, 101.11°)
OKLaboklab(81.25% -0.041 0.144)
OKLCHoklch(81.25% 0.15 105.9)
XYZxyz(47.1407, 54.5073, 13.1910)
Luminance0.5451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC742 #424ACF
analogous
#CF8042 #CFC742 #90CF42
triadic
#CFC742 #42CFC7 #C742CF
tetradic
#CFC742 #42CF80 #424ACF #CF4290
square
#CFC742 #42CF80 #424ACF #CF4290
split-complementary
#CFC742 #4290CF #8042CF
monochromatic
#78731F #A9A22B #CFC742 #DBD573 #E8E4A4

Accessibility & contrast

On white

1.76
#CFC742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#CFC742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC742
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC742#FFFFFF#000000##000000
##CFC7421.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DBC54B
Tritanopia (blue-blind)
#DEBAAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc742;
/* rgb */ color: rgb(207, 199, 66);
/* oklch */ color: oklch(81.3% 0.150 105.9);
Tailwind
colors: {
  custom: {
    50: '#e1d77e',
    500: '#cfc742',
    950: '#000000',
  },
}
SCSS
$custom: #cfc742;
$custom-light: #e1d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc742",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 56.596,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.81252,
    "c": 0.14971,
    "h": 105.9
  },
  "luminance": 0.54506
}

Semantic roles & 50–950 ramp

primary
#CFC742
secondary
#353980
accent
#4EE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC742

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

Preview Lab → · Contrast checker → · Palette generator →

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