#CCC671#CCC671

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

Color values

HEX#CCC671
RGBrgb(204, 198, 113)
HSLhsl(56, 47%, 62%)
HSVhsv(56, 45%, 80%)
CMYKcmyk(0%, 2.9%, 44.6%, 20%)
CIE-LABlab(78.71, -9.83, 43.16)
CIE-LCHlch(78.71, 44.27, 102.83°)
OKLaboklab(81.3% -0.0278 0.1038)
OKLCHoklch(81.3% 0.107 105)
XYZxyz(48.0776, 54.4191, 23.5909)
Luminance0.5442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC671 #7177CC
analogous
#CC9971 #CCC671 #A5CC71
triadic
#CCC671 #71CCC6 #C671CC
tetradic
#CCC671 #71CC99 #7177CC #CC71A5
square
#CCC671 #71CC99 #7177CC #CC71A5
split-complementary
#CCC671 #71A5CC #9971CC
monochromatic
#8F8933 #BCB444 #CCC671 #DCD89E #ECEACB

Accessibility & contrast

On white

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

On black

11.88
#CCC671 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC671
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC671#FFFFFF#000000##000000
##CCC6711.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccc671;
/* rgb */ color: rgb(204, 198, 113);
/* oklch */ color: oklch(81.3% 0.107 105.0);
Tailwind
colors: {
  custom: {
    50: '#ddd79b',
    500: '#ccc671',
    950: '#000000',
  },
}
SCSS
$custom: #ccc671;
$custom-light: #ddd79b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc671",
  "rgb": {
    "r": 204,
    "g": 198,
    "b": 113
  },
  "hsl": {
    "h": 56.044,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.81301,
    "c": 0.10744,
    "h": 105
  },
  "luminance": 0.54418
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC671

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

Preview Lab → · Contrast checker → · Palette generator →

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