#CCC97F#CCC97F

#CCC97F is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.2% C 0.095 H 106.3°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#CCC97F
RGBrgb(204, 201, 127)
HSLhsl(58, 43%, 65%)
HSVhsv(58, 38%, 80%)
CMYKcmyk(0%, 1.5%, 37.7%, 20%)
CIE-LABlab(79.70, -9.88, 37.36)
CIE-LCHlch(79.70, 38.64, 104.81°)
OKLaboklab(82.15% -0.0268 0.0915)
OKLCHoklch(82.15% 0.095 106.3)
XYZxyz(49.6199, 56.1440, 28.2976)
Luminance0.5614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC97F #7F82CC
analogous
#CCA27F #CCC97F #A9CC7F
triadic
#CCC97F #7FCCC9 #C97FCC
tetradic
#CCC97F #7FCCA2 #7F82CC #CC7FA9
square
#CCC97F #7FCCA2 #7F82CC #CC7FA9
split-complementary
#CCC97F #7FA9CC #A27FCC
monochromatic
#95923B #BBB753 #CCC97F #DDDBAB #EFEED7

Accessibility & contrast

On white

1.72
#CCC97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#CCC97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC97F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC97F#FFFFFF#000000##000000
##CCC97F1.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C479
Deuteranopia (green-blind)
#D7C782
Tritanopia (blue-blind)
#D6C0B7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccc97f;
/* rgb */ color: rgb(204, 201, 127);
/* oklch */ color: oklch(82.2% 0.095 106.3);
Tailwind
colors: {
  custom: {
    50: '#ddd9a5',
    500: '#ccc97f',
    950: '#000000',
  },
}
SCSS
$custom: #ccc97f;
$custom-light: #ddd9a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc97f",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 127
  },
  "hsl": {
    "h": 57.662,
    "s": 43.017,
    "l": 64.902
  },
  "oklch": {
    "l": 0.8215,
    "c": 0.0953,
    "h": 106.3
  },
  "luminance": 0.56143
}

Semantic roles & 50–950 ramp

primary
#CCC97F
secondary
#54569C
accent
#35B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC97F

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

Preview Lab → · Contrast checker → · Palette generator →

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