#CFCA2F#CFCA2F

#CFCA2F is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.8% C 0.163 H 107.6°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#CFCA2F
RGBrgb(207, 202, 47)
HSLhsl(58, 63%, 50%)
HSVhsv(58, 77%, 81%)
CMYKcmyk(0%, 2.4%, 77.3%, 18.8%)
CIE-LABlab(79.45, -15.01, 71.57)
CIE-LCHlch(79.45, 73.13, 101.84°)
OKLaboklab(81.77% -0.0494 0.1558)
OKLCHoklch(81.77% 0.163 107.6)
XYZxyz(47.3677, 55.7133, 10.9474)
Luminance0.5571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA2F #2F34CF
analogous
#CF7A2F #CFCA2F #84CF2F
triadic
#CFCA2F #2FCFCA #CA2FCF
tetradic
#CFCA2F #2FCF7A #2F34CF #CF2F84
square
#CFCA2F #2FCF7A #2F34CF #CF2F84
split-complementary
#CFCA2F #2F84CF #7A2FCF
monochromatic
#6B6918 #9D9924 #CFCA2F #DBD760 #E6E492

Accessibility & contrast

On white

1.73
#CFCA2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#CFCA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA2F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA2F#FFFFFF#000000##000000
##CFCA2F1.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC200
Deuteranopia (green-blind)
#DEC73C
Tritanopia (blue-blind)
#DEBCAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca2f;
/* rgb */ color: rgb(207, 202, 47);
/* oklch */ color: oklch(81.8% 0.163 107.6);
Tailwind
colors: {
  custom: {
    50: '#e2d975',
    500: '#cfca2f',
    950: '#000000',
  },
}
SCSS
$custom: #cfca2f;
$custom-light: #e2d975;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca2f",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 47
  },
  "hsl": {
    "h": 58.125,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.81771,
    "c": 0.16342,
    "h": 107.6
  },
  "luminance": 0.55712
}

Semantic roles & 50–950 ramp

primary
#CFCA2F
secondary
#2D3075
accent
#47E642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFCA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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