#CFC74E#CFC74E

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

Color values

HEX#CFC74E
RGBrgb(207, 199, 78)
HSLhsl(56, 57%, 56%)
HSVhsv(56, 62%, 81%)
CMYKcmyk(0%, 3.9%, 62.3%, 18.8%)
CIE-LABlab(78.85, -11.95, 59.66)
CIE-LCHlch(78.85, 60.84, 101.33°)
OKLaboklab(81.35% -0.0377 0.1358)
OKLCHoklch(81.35% 0.141 105.5)
XYZxyz(47.5324, 54.6639, 15.2536)
Luminance0.5466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC74E #4E56CF
analogous
#CF864E #CFC74E #96CF4E
triadic
#CFC74E #4ECFC7 #C74ECF
tetradic
#CFC74E #4ECF86 #4E56CF #CF4E96
square
#CFC74E #4ECF86 #4E56CF #CF4E96
split-complementary
#CFC74E #4E96CF #864ECF
monochromatic
#807A23 #B0A830 #CFC74E #DCD67E #E9E5AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFC74E#FFFFFF#000000##000000
##CFC74E1.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)
#D7C03F
Deuteranopia (green-blind)
#DAC655
Tritanopia (blue-blind)
#DDBAAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc74e;
/* rgb */ color: rgb(207, 199, 78);
/* oklch */ color: oklch(81.4% 0.141 105.5);
Tailwind
colors: {
  custom: {
    50: '#e1d785',
    500: '#cfc74e',
    950: '#000000',
  },
}
SCSS
$custom: #cfc74e;
$custom-light: #e1d785;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc74e",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 56.279,
    "s": 57.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81353,
    "c": 0.14096,
    "h": 105.5
  },
  "luminance": 0.54662
}

Semantic roles & 50–950 ramp

primary
#CFC74E
secondary
#3A3F87
accent
#51E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC74E

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

Preview Lab → · Contrast checker → · Palette generator →

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