#CCB23C#CCB23C

#CCB23C 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#CCB23C
RGBrgb(204, 178, 60)
HSLhsl(49, 59%, 52%)
HSVhsv(49, 71%, 80%)
CMYKcmyk(0%, 12.7%, 70.6%, 20%)
CIE-LABlab(72.90, -3.43, 60.78)
CIE-LCHlch(72.90, 60.88, 93.23°)
OKLaboklab(76.52% -0.0153 0.1354)
OKLCHoklch(76.52% 0.136 96.4)
XYZxyz(41.6399, 45.0066, 10.7679)
Luminance0.4500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB23C #3C56CC
analogous
#CC6A3C #CCB23C #9ECC3C
triadic
#CCB23C #3CCCB2 #B23CCC
tetradic
#CCB23C #3CCC6A #3C56CC #CC3C9E
square
#CCB23C #3CCC6A #3C56CC #CC3C9E
split-complementary
#CCB23C #3C9ECC #6A3CCC
monochromatic
#70611D #A18B2A #CCB23C #D9C56D #E5D89D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB23C#FFFFFF#000000##000000
##CCB23C1.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)
#C4AE2B
Deuteranopia (green-blind)
#CBB743
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb23c;
/* rgb */ color: rgb(204, 178, 60);
/* oklch */ color: oklch(76.5% 0.136 96.4);
Tailwind
colors: {
  custom: {
    50: '#dfc879',
    500: '#ccb23c',
    950: '#000000',
  },
}
SCSS
$custom: #ccb23c;
$custom-light: #dfc879;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb23c",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 60
  },
  "hsl": {
    "h": 49.167,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.76522,
    "c": 0.13624,
    "h": 96.4
  },
  "luminance": 0.45004
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCB23C

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

Preview Lab → · Contrast checker → · Palette generator →

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