#CCC239#CCC239

#CCC239 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.151 H 105.1°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#CCC239
RGBrgb(204, 194, 57)
HSLhsl(56, 59%, 51%)
HSVhsv(56, 72%, 80%)
CMYKcmyk(0%, 4.9%, 72.1%, 20%)
CIE-LABlab(77.11, -11.84, 66.04)
CIE-LCHlch(77.11, 67.09, 100.16°)
OKLaboklab(79.86% -0.0394 0.146)
OKLCHoklch(79.86% 0.151 105.1)
XYZxyz(44.9340, 51.7181, 11.4858)
Luminance0.5172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC239 #3943CC
analogous
#CC7839 #CCC239 #8CCC39
triadic
#CCC239 #39CCC2 #C239CC
tetradic
#CCC239 #39CC78 #3943CC #CC398C
square
#CCC239 #39CC78 #3943CC #CC398C
split-complementary
#CCC239 #398CCC #7839CC
monochromatic
#6E691C #9F9729 #CCC239 #D9D16A #E5E09A

Accessibility & contrast

On white

1.85
#CCC239 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#CCC239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC239
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC239#FFFFFF#000000##000000
##CCC2391.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB20
Deuteranopia (green-blind)
#D7C143
Tritanopia (blue-blind)
#DBB5A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc239;
/* rgb */ color: rgb(204, 194, 57);
/* oklch */ color: oklch(79.9% 0.151 105.1);
Tailwind
colors: {
  custom: {
    50: '#dfd479',
    500: '#ccc239',
    950: '#000000',
  },
}
SCSS
$custom: #ccc239;
$custom-light: #dfd479;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc239",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 57
  },
  "hsl": {
    "h": 55.918,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79863,
    "c": 0.1512,
    "h": 105.1
  },
  "luminance": 0.51716
}

Semantic roles & 50–950 ramp

primary
#CCC239
secondary
#323678
accent
#50E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC239

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

Preview Lab → · Contrast checker → · Palette generator →

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