#CCB231#CCB231

#CCB231 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.4% C 0.143 H 97.2°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#CCB231
RGBrgb(204, 178, 49)
HSLhsl(50, 61%, 50%)
HSVhsv(50, 76%, 80%)
CMYKcmyk(0%, 12.7%, 76%, 20%)
CIE-LABlab(72.83, -3.93, 64.78)
CIE-LCHlch(72.83, 64.90, 93.47°)
OKLaboklab(76.45% -0.0179 0.1418)
OKLCHoklch(76.45% 0.143 97.2)
XYZxyz(41.3788, 44.9021, 9.3926)
Luminance0.4490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB231 #314BCC
analogous
#CC6431 #CCB231 #99CC31
triadic
#CCB231 #31CCB2 #B231CC
tetradic
#CCB231 #31CC64 #314BCC #CC3199
square
#CCB231 #31CC64 #314BCC #CC3199
split-complementary
#CCB231 #3199CC #6431CC
monochromatic
#695C19 #9B8725 #CCB231 #D9C561 #E5D792

Accessibility & contrast

On white

2.10
#CCB231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#CCB231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB231
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB231#FFFFFF#000000##000000
##CCB2311.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE17
Deuteranopia (green-blind)
#CBB63A
Tritanopia (blue-blind)
#DCA499
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb231;
/* rgb */ color: rgb(204, 178, 49);
/* oklch */ color: oklch(76.4% 0.143 97.2);
Tailwind
colors: {
  custom: {
    50: '#e0c873',
    500: '#ccb231',
    950: '#000000',
  },
}
SCSS
$custom: #ccb231;
$custom-light: #e0c873;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb231",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 49.935,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.76446,
    "c": 0.14291,
    "h": 97.2
  },
  "luminance": 0.449
}

Semantic roles & 50–950 ramp

primary
#CCB231
secondary
#8995D0
accent
#5EE443
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB231

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

Preview Lab → · Contrast checker → · Palette generator →

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