#CFC74F#CFC74F

#CFC74F is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.140 H 105.5°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#CFC74F
RGBrgb(207, 199, 79)
HSLhsl(56, 57%, 56%)
HSVhsv(56, 62%, 81%)
CMYKcmyk(0%, 3.9%, 61.8%, 18.8%)
CIE-LABlab(78.86, -11.89, 59.24)
CIE-LCHlch(78.86, 60.42, 101.34°)
OKLaboklab(81.36% -0.0374 0.1351)
OKLCHoklch(81.36% 0.14 105.5)
XYZxyz(47.5685, 54.6784, 15.4439)
Luminance0.5468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC74F #4F57CF
analogous
#CF874F #CFC74F #97CF4F
triadic
#CFC74F #4FCFC7 #C74FCF
tetradic
#CFC74F #4FCF87 #4F57CF #CF4F97
square
#CFC74F #4FCF87 #4F57CF #CF4F97
split-complementary
#CFC74F #4F97CF #874FCF
monochromatic
#817B23 #B1A930 #CFC74F #DCD67F #E9E6AF

Accessibility & contrast

On white

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

On black

11.94
#CFC74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC74F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC74F#FFFFFF#000000##000000
##CFC74F1.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C041
Deuteranopia (green-blind)
#DAC656
Tritanopia (blue-blind)
#DDBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc74f;
/* rgb */ color: rgb(207, 199, 79);
/* oklch */ color: oklch(81.4% 0.140 105.5);
Tailwind
colors: {
  custom: {
    50: '#e1d785',
    500: '#cfc74f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc74f;
$custom-light: #e1d785;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc74f",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 56.25,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81363,
    "c": 0.14017,
    "h": 105.5
  },
  "luminance": 0.54677
}

Semantic roles & 50–950 ramp

primary
#CFC74F
secondary
#3A3F88
accent
#51E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC74F

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

Preview Lab → · Contrast checker → · Palette generator →

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