#CCC672#CCC672

#CCC672 is a light, moderate yellow. Relative luminance 0.544; OKLCH L 81.3% C 0.106 H 104.9°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#CCC672
RGBrgb(204, 198, 114)
HSLhsl(56, 47%, 62%)
HSVhsv(56, 44%, 80%)
CMYKcmyk(0%, 2.9%, 44.1%, 20%)
CIE-LABlab(78.72, -9.73, 42.68)
CIE-LCHlch(78.72, 43.78, 102.84°)
OKLaboklab(81.32% -0.0274 0.1028)
OKLCHoklch(81.32% 0.106 104.9)
XYZxyz(48.1342, 54.4417, 23.8891)
Luminance0.5444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC672 #7278CC
analogous
#CC9972 #CCC672 #A5CC72
triadic
#CCC672 #72CCC6 #C672CC
tetradic
#CCC672 #72CC99 #7278CC #CC72A5
square
#CCC672 #72CC99 #7278CC #CC72A5
split-complementary
#CCC672 #72A5CC #9972CC
monochromatic
#908A34 #BCB445 #CCC672 #DCD89F #EDEACC

Accessibility & contrast

On white

1.77
#CCC672 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#CCC672 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC672
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC672#FFFFFF#000000##000000
##CCC6721.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C06B
Deuteranopia (green-blind)
#D6C576
Tritanopia (blue-blind)
#D8BCB2
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #ccc672;
/* rgb */ color: rgb(204, 198, 114);
/* oklch */ color: oklch(81.3% 0.106 104.9);
Tailwind
colors: {
  custom: {
    50: '#ddd79c',
    500: '#ccc672',
    950: '#000000',
  },
}
SCSS
$custom: #ccc672;
$custom-light: #ddd79c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc672",
  "rgb": {
    "r": 204,
    "g": 198,
    "b": 114
  },
  "hsl": {
    "h": 56,
    "s": 46.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.81315,
    "c": 0.10638,
    "h": 104.9
  },
  "luminance": 0.5444
}

Semantic roles & 50–950 ramp

primary
#CCC672
secondary
#4C5196
accent
#35BA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CCC672

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

Preview Lab → · Contrast checker → · Palette generator →

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