#CFC74B#CFC74B

#CFC74B 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.92:1 contrast (WCAG AA passes).

Color values

HEX#CFC74B
RGBrgb(207, 199, 75)
HSLhsl(56, 58%, 55%)
HSVhsv(56, 64%, 81%)
CMYKcmyk(0%, 3.9%, 63.8%, 18.8%)
CIE-LABlab(78.82, -12.14, 60.89)
CIE-LCHlch(78.82, 62.09, 101.27°)
OKLaboklab(81.33% -0.0386 0.138)
OKLCHoklch(81.33% 0.143 105.6)
XYZxyz(47.4273, 54.6219, 14.7001)
Luminance0.5462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC74B #4B53CF
analogous
#CF854B #CFC74B #95CF4B
triadic
#CFC74B #4BCFC7 #C74BCF
tetradic
#CFC74B #4BCF85 #4B53CF #CF4B95
square
#CFC74B #4BCF85 #4B53CF #CF4B95
split-complementary
#CFC74B #4B95CF #854BCF
monochromatic
#7E7822 #AEA72E #CFC74B #DCD67B #E9E5AC

Accessibility & contrast

On white

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

On black

11.92
#CFC74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC74B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC74B#FFFFFF#000000##000000
##CFC74B1.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03B
Deuteranopia (green-blind)
#DAC652
Tritanopia (blue-blind)
#DEBAAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc74b;
/* rgb */ color: rgb(207, 199, 75);
/* oklch */ color: oklch(81.3% 0.143 105.6);
Tailwind
colors: {
  custom: {
    50: '#e1d783',
    500: '#cfc74b',
    950: '#000000',
  },
}
SCSS
$custom: #cfc74b;
$custom-light: #e1d783;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc74b",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 56.364,
    "s": 57.895,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81326,
    "c": 0.14327,
    "h": 105.6
  },
  "luminance": 0.5462
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFC74B

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

Preview Lab → · Contrast checker → · Palette generator →

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