#CCB23B#CCB23B

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

Color values

HEX#CCB23B
RGBrgb(204, 178, 59)
HSLhsl(49, 59%, 52%)
HSVhsv(49, 71%, 80%)
CMYKcmyk(0%, 12.7%, 71.1%, 20%)
CIE-LABlab(72.89, -3.48, 61.17)
CIE-LCHlch(72.89, 61.26, 93.25°)
OKLaboklab(76.52% -0.0155 0.136)
OKLCHoklch(76.52% 0.137 96.5)
XYZxyz(41.6137, 44.9961, 10.6300)
Luminance0.4499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB23B #3B55CC
analogous
#CC6A3B #CCB23B #9ECC3B
triadic
#CCB23B #3BCCB2 #B23BCC
tetradic
#CCB23B #3BCC6A #3B55CC #CC3B9E
square
#CCB23B #3BCC6A #3B55CC #CC3B9E
split-complementary
#CCB23B #3B9ECC #6A3BCC
monochromatic
#70611D #A08B2A #CCB23B #D9C56C #E5D89C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB23B#FFFFFF#000000##000000
##CCB23B1.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)
#C4AE29
Deuteranopia (green-blind)
#CBB642
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb23b;
/* rgb */ color: rgb(204, 178, 59);
/* oklch */ color: oklch(76.5% 0.137 96.5);
Tailwind
colors: {
  custom: {
    50: '#dfc878',
    500: '#ccb23b',
    950: '#000000',
  },
}
SCSS
$custom: #ccb23b;
$custom-light: #dfc878;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb23b",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 59
  },
  "hsl": {
    "h": 49.241,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.76515,
    "c": 0.13691,
    "h": 96.5
  },
  "luminance": 0.44994
}

Semantic roles & 50–950 ramp

primary
#CCB23B
secondary
#929DD1
accent
#62E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB23B

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

Preview Lab → · Contrast checker → · Palette generator →

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