#CCB252#CCB252

#CCB252 is a light, moderate yellow. Relative luminance 0.453; OKLCH L 76.7% C 0.119 H 94.3°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#CCB252
RGBrgb(204, 178, 82)
HSLhsl(47, 54%, 56%)
HSVhsv(47, 60%, 80%)
CMYKcmyk(0%, 12.7%, 59.8%, 20%)
CIE-LABlab(73.08, -2.09, 51.48)
CIE-LCHlch(73.08, 51.52, 92.33°)
OKLaboklab(76.73% -0.0089 0.119)
OKLCHoklch(76.73% 0.119 94.3)
XYZxyz(42.3470, 45.2894, 14.4922)
Luminance0.4529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB252 #526CCC
analogous
#CC7552 #CCB252 #A9CC52
triadic
#CCB252 #52CCB2 #B252CC
tetradic
#CCB252 #52CC75 #526CCC #CC52A9
square
#CCB252 #52CC75 #526CCC #CC52A9
split-complementary
#CCB252 #52A9CC #7552CC
monochromatic
#7E6B25 #AE9433 #CCB252 #DAC781 #E8DCB1

Accessibility & contrast

On white

2.09
#CCB252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.06
#CCB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB252
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB252#FFFFFF#000000##000000
##CCB2521.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF48
Deuteranopia (green-blind)
#C9B756
Tritanopia (blue-blind)
#DBA69D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb252;
/* rgb */ color: rgb(204, 178, 82);
/* oklch */ color: oklch(76.7% 0.119 94.3);
Tailwind
colors: {
  custom: {
    50: '#dec886',
    500: '#ccb252',
    950: '#000000',
  },
}
SCSS
$custom: #ccb252;
$custom-light: #dec886;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb252",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 47.213,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.76729,
    "c": 0.11935,
    "h": 94.3
  },
  "luminance": 0.45287
}

Semantic roles & 50–950 ramp

primary
#CCB252
secondary
#A4AED6
accent
#69DE4A
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB252

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

Preview Lab → · Contrast checker → · Palette generator →

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