#CFCC2F#CFCC2F

#CFCC2F is a very light, vivid yellow. Relative luminance 0.567; OKLCH L 82.2% C 0.165 H 108.4°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#CFCC2F
RGBrgb(207, 204, 47)
HSLhsl(59, 63%, 50%)
HSVhsv(59, 77%, 81%)
CMYKcmyk(0%, 1.4%, 77.3%, 18.8%)
CIE-LABlab(79.99, -16.01, 72.05)
CIE-LCHlch(79.99, 73.81, 102.53°)
OKLaboklab(82.2% -0.0521 0.1568)
OKLCHoklch(82.2% 0.165 108.4)
XYZxyz(47.8400, 56.6580, 11.1048)
Luminance0.5666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCC2F #2F32CF
analogous
#CF7C2F #CFCC2F #82CF2F
triadic
#CFCC2F #2FCFCC #CC2FCF
tetradic
#CFCC2F #2FCF7C #2F32CF #CF2F82
square
#CFCC2F #2FCF7C #2F32CF #CF2F82
split-complementary
#CFCC2F #2F82CF #7C2FCF
monochromatic
#6B6A18 #9D9B24 #CFCC2F #DBD960 #E6E592

Accessibility & contrast

On white

1.70
#CFCC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#CFCC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCC2F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCC2F#FFFFFF#000000##000000
##CFCC2F1.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC400
Deuteranopia (green-blind)
#E0C93D
Tritanopia (blue-blind)
#DEBEAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfcc2f;
/* rgb */ color: rgb(207, 204, 47);
/* oklch */ color: oklch(82.2% 0.165 108.4);
Tailwind
colors: {
  custom: {
    50: '#e2db75',
    500: '#cfcc2f',
    950: '#000000',
  },
}
SCSS
$custom: #cfcc2f;
$custom-light: #e2db75;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcc2f",
  "rgb": {
    "r": 207,
    "g": 204,
    "b": 47
  },
  "hsl": {
    "h": 58.875,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.82199,
    "c": 0.16526,
    "h": 108.4
  },
  "luminance": 0.56656
}

Semantic roles & 50–950 ramp

primary
#CFCC2F
secondary
#2D2F75
accent
#45E642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFCC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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