#CCB23F#CCB23F

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

Color values

HEX#CCB23F
RGBrgb(204, 178, 63)
HSLhsl(49, 58%, 52%)
HSVhsv(49, 69%, 80%)
CMYKcmyk(0%, 12.7%, 69.1%, 20%)
CIE-LABlab(72.92, -3.27, 59.60)
CIE-LCHlch(72.92, 59.69, 93.14°)
OKLaboklab(76.55% -0.0145 0.1334)
OKLCHoklch(76.55% 0.134 96.2)
XYZxyz(41.7215, 45.0392, 11.1975)
Luminance0.4504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB23F #3F59CC
analogous
#CC6B3F #CCB23F #A0CC3F
triadic
#CCB23F #3FCCB2 #B23FCC
tetradic
#CCB23F #3FCC6B #3F59CC #CC3FA0
square
#CCB23F #3FCC6B #3F59CC #CC3FA0
split-complementary
#CCB23F #3FA0CC #6B3FCC
monochromatic
#72631E #A38D2B #CCB23F #D9C56F #E6D9A0

Accessibility & contrast

On white

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

On black

10.01
#CCB23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB23F
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB23F#FFFFFF#000000##000000
##CCB23F1.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE2F
Deuteranopia (green-blind)
#CAB745
Tritanopia (blue-blind)
#DCA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb23f;
/* rgb */ color: rgb(204, 178, 63);
/* oklch */ color: oklch(76.5% 0.134 96.2);
Tailwind
colors: {
  custom: {
    50: '#dfc87a',
    500: '#ccb23f',
    950: '#000000',
  },
}
SCSS
$custom: #ccb23f;
$custom-light: #dfc87a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb23f",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 63
  },
  "hsl": {
    "h": 48.936,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.76546,
    "c": 0.13422,
    "h": 96.2
  },
  "luminance": 0.45037
}

Semantic roles & 50–950 ramp

primary
#CCB23F
secondary
#95A0D2
accent
#63E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB23F

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

Preview Lab → · Contrast checker → · Palette generator →

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