#CCC73E#CCC73E

#CCC73E is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.153 H 107.3°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#CCC73E
RGBrgb(204, 199, 62)
HSLhsl(58, 58%, 52%)
HSVhsv(58, 70%, 80%)
CMYKcmyk(0%, 2.5%, 69.6%, 20%)
CIE-LABlab(78.48, -14.13, 65.56)
CIE-LCHlch(78.48, 67.06, 102.16°)
OKLaboklab(80.96% -0.0454 0.1458)
OKLCHoklch(80.96% 0.153 107.3)
XYZxyz(46.1965, 54.0336, 12.5526)
Luminance0.5403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC73E #3E43CC
analogous
#CC803E #CCC73E #8ACC3E
triadic
#CCC73E #3ECCC7 #C73ECC
tetradic
#CCC73E #3ECC80 #3E43CC #CC3E8A
square
#CCC73E #3ECC80 #3E43CC #CC3E8A
split-complementary
#CCC73E #3E8ACC #803ECC
monochromatic
#726F1E #A29E2B #CCC73E #D9D56E #E6E39F

Accessibility & contrast

On white

1.78
#CCC73E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#CCC73E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC73E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC73E#FFFFFF#000000##000000
##CCC73E1.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF28
Deuteranopia (green-blind)
#DAC548
Tritanopia (blue-blind)
#DBBAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc73e;
/* rgb */ color: rgb(204, 199, 62);
/* oklch */ color: oklch(81.0% 0.153 107.3);
Tailwind
colors: {
  custom: {
    50: '#dfd77c',
    500: '#ccc73e',
    950: '#000000',
  },
}
SCSS
$custom: #ccc73e;
$custom-light: #dfd77c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc73e",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 62
  },
  "hsl": {
    "h": 57.887,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80964,
    "c": 0.15273,
    "h": 107.3
  },
  "luminance": 0.54032
}

Semantic roles & 50–950 ramp

primary
#CCC73E
secondary
#34367B
accent
#4CE146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC73E

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

Preview Lab → · Contrast checker → · Palette generator →

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