#CCB23A#CCB23A

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

Color values

HEX#CCB23A
RGBrgb(204, 178, 58)
HSLhsl(49, 59%, 51%)
HSVhsv(49, 72%, 80%)
CMYKcmyk(0%, 12.7%, 71.6%, 20%)
CIE-LABlab(72.88, -3.53, 61.55)
CIE-LCHlch(72.88, 61.65, 93.28°)
OKLaboklab(76.51% -0.0158 0.1366)
OKLCHoklch(76.51% 0.138 96.6)
XYZxyz(41.5880, 44.9858, 10.4947)
Luminance0.4498 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB23A #3A54CC
analogous
#CC693A #CCB23A #9DCC3A
triadic
#CCB23A #3ACCB2 #B23ACC
tetradic
#CCB23A #3ACC69 #3A54CC #CC3A9D
square
#CCB23A #3ACC69 #3A54CC #CC3A9D
split-complementary
#CCB23A #3A9DCC #693ACC
monochromatic
#6F601D #A08A29 #CCB23A #D9C56B #E5D89B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB23A#FFFFFF#000000##000000
##CCB23A1.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)
#C4AE27
Deuteranopia (green-blind)
#CBB641
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb23a;
/* rgb */ color: rgb(204, 178, 58);
/* oklch */ color: oklch(76.5% 0.138 96.6);
Tailwind
colors: {
  custom: {
    50: '#dfc878',
    500: '#ccb23a',
    950: '#000000',
  },
}
SCSS
$custom: #ccb23a;
$custom-light: #dfc878;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb23a",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 49.315,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.76507,
    "c": 0.13755,
    "h": 96.6
  },
  "luminance": 0.44984
}

Semantic roles & 50–950 ramp

primary
#CCB23A
secondary
#919CD1
accent
#62E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB23A

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

Preview Lab → · Contrast checker → · Palette generator →

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