#CFCA4F#CFCA4F

#CFCA4F is a light, vivid yellow. Relative luminance 0.561; OKLCH L 82.0% C 0.143 H 107.0°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CFCA4F
RGBrgb(207, 202, 79)
HSLhsl(58, 57%, 56%)
HSVhsv(58, 62%, 81%)
CMYKcmyk(0%, 2.4%, 61.8%, 18.8%)
CIE-LABlab(79.66, -13.40, 60.10)
CIE-LCHlch(79.66, 61.58, 102.57°)
OKLaboklab(82% -0.0417 0.1369)
OKLCHoklch(82% 0.143 107)
XYZxyz(48.2656, 56.0725, 15.6762)
Luminance0.5607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA4F #4F54CF
analogous
#CF8A4F #CFCA4F #94CF4F
triadic
#CFCA4F #4FCFCA #CA4FCF
tetradic
#CFCA4F #4FCF8A #4F54CF #CF4F94
square
#CFCA4F #4FCF8A #4F54CF #CF4F94
split-complementary
#CFCA4F #4F94CF #8A4FCF
monochromatic
#817D23 #B1AC30 #CFCA4F #DCD87F #E9E7AF

Accessibility & contrast

On white

1.72
#CFCA4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#CFCA4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA4F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA4F#FFFFFF#000000##000000
##CFCA4F1.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC340
Deuteranopia (green-blind)
#DDC856
Tritanopia (blue-blind)
#DDBEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca4f;
/* rgb */ color: rgb(207, 202, 79);
/* oklch */ color: oklch(82.0% 0.143 107.0);
Tailwind
colors: {
  custom: {
    50: '#e1d986',
    500: '#cfca4f',
    950: '#000000',
  },
}
SCSS
$custom: #cfca4f;
$custom-light: #e1d986;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca4f",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 79
  },
  "hsl": {
    "h": 57.656,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81999,
    "c": 0.14312,
    "h": 107
  },
  "luminance": 0.56071
}

Semantic roles & 50–950 ramp

primary
#CFCA4F
secondary
#3A3D88
accent
#4DE047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFCA4F

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

Preview Lab → · Contrast checker → · Palette generator →

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