#CFC74C#CFC74C

#CFC74C is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.3% C 0.143 H 105.6°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#CFC74C
RGBrgb(207, 199, 76)
HSLhsl(56, 58%, 55%)
HSVhsv(56, 63%, 81%)
CMYKcmyk(0%, 3.9%, 63.3%, 18.8%)
CIE-LABlab(78.83, -12.08, 60.48)
CIE-LCHlch(78.83, 61.67, 101.29°)
OKLaboklab(81.34% -0.0383 0.1373)
OKLCHoklch(81.34% 0.143 105.6)
XYZxyz(47.4618, 54.6357, 14.8817)
Luminance0.5463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC74C #4C54CF
analogous
#CF854C #CFC74C #95CF4C
triadic
#CFC74C #4CCFC7 #C74CCF
tetradic
#CFC74C #4CCF85 #4C54CF #CF4C95
square
#CFC74C #4CCF85 #4C54CF #CF4C95
split-complementary
#CFC74C #4C95CF #854CCF
monochromatic
#7F7922 #AFA72F #CFC74C #DCD67C #E9E5AD

Accessibility & contrast

On white

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

On black

11.93
#CFC74C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC74C
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC74C#FFFFFF#000000##000000
##CFC74C1.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03D
Deuteranopia (green-blind)
#DAC653
Tritanopia (blue-blind)
#DDBAAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc74c;
/* rgb */ color: rgb(207, 199, 76);
/* oklch */ color: oklch(81.3% 0.143 105.6);
Tailwind
colors: {
  custom: {
    50: '#e1d784',
    500: '#cfc74c',
    950: '#000000',
  },
}
SCSS
$custom: #cfc74c;
$custom-light: #e1d784;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc74c",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 76
  },
  "hsl": {
    "h": 56.336,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81335,
    "c": 0.14251,
    "h": 105.6
  },
  "luminance": 0.54634
}

Semantic roles & 50–950 ramp

primary
#CFC74C
secondary
#393E86
accent
#50E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC74C

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

Preview Lab → · Contrast checker → · Palette generator →

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