#CCB23D#CCB23D

#CCB23D is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.5% C 0.136 H 96.4°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#CCB23D
RGBrgb(204, 178, 61)
HSLhsl(49, 58%, 52%)
HSVhsv(49, 70%, 80%)
CMYKcmyk(0%, 12.7%, 70.1%, 20%)
CIE-LABlab(72.90, -3.38, 60.39)
CIE-LCHlch(72.90, 60.49, 93.20°)
OKLaboklab(76.53% -0.015 0.1347)
OKLCHoklch(76.53% 0.136 96.4)
XYZxyz(41.6666, 45.0172, 10.9085)
Luminance0.4501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB23D #3D57CC
analogous
#CC6B3D #CCB23D #9FCC3D
triadic
#CCB23D #3DCCB2 #B23DCC
tetradic
#CCB23D #3DCC6B #3D57CC #CC3D9F
square
#CCB23D #3DCC6B #3D57CC #CC3D9F
split-complementary
#CCB23D #3D9FCC #6B3DCC
monochromatic
#71621E #A18C2A #CCB23D #D9C56D #E5D89E

Accessibility & contrast

On white

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

On black

10.00
#CCB23D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB23D
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB23D#FFFFFF#000000##000000
##CCB23D1.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE2C
Deuteranopia (green-blind)
#CBB744
Tritanopia (blue-blind)
#DCA59A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb23d;
/* rgb */ color: rgb(204, 178, 61);
/* oklch */ color: oklch(76.5% 0.136 96.4);
Tailwind
colors: {
  custom: {
    50: '#dfc879',
    500: '#ccb23d',
    950: '#000000',
  },
}
SCSS
$custom: #ccb23d;
$custom-light: #dfc879;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb23d",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 61
  },
  "hsl": {
    "h": 49.091,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.7653,
    "c": 0.13558,
    "h": 96.4
  },
  "luminance": 0.45015
}

Semantic roles & 50–950 ramp

primary
#CCB23D
secondary
#939ED2
accent
#62E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB23D

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

Preview Lab → · Contrast checker → · Palette generator →

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