#CCB83B#CCB83B

#CCB83B is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.8% C 0.141 H 100.0°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#CCB83B
RGBrgb(204, 184, 59)
HSLhsl(52, 59%, 52%)
HSVhsv(52, 71%, 80%)
CMYKcmyk(0%, 9.8%, 71.1%, 20%)
CIE-LABlab(74.47, -6.61, 62.73)
CIE-LCHlch(74.47, 63.07, 96.01°)
OKLaboklab(77.77% -0.0244 0.1393)
OKLCHoklch(77.77% 0.141 100)
XYZxyz(42.8337, 47.4361, 11.0367)
Luminance0.4743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB83B #3B4FCC
analogous
#CC703B #CCB83B #98CC3B
triadic
#CCB83B #3BCCB8 #B83BCC
tetradic
#CCB83B #3BCC70 #3B4FCC #CC3B98
square
#CCB83B #3BCC70 #3B4FCC #CC3B98
split-complementary
#CCB83B #3B98CC #703BCC
monochromatic
#70641D #A0902A #CCB83B #D9CA6C #E5DB9C

Accessibility & contrast

On white

2.00
#CCB83B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.49
#CCB83B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB83B
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB83B#FFFFFF#000000##000000
##CCB83B1.002.0010.4910.49
#FFFFFF2.001.0021.0021.00
#00000010.4921.001.001.00
##00000010.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB327
Deuteranopia (green-blind)
#CFBA43
Tritanopia (blue-blind)
#DCAB9F
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb83b;
/* rgb */ color: rgb(204, 184, 59);
/* oklch */ color: oklch(77.8% 0.141 100.0);
Tailwind
colors: {
  custom: {
    50: '#dfcd79',
    500: '#ccb83b',
    950: '#000000',
  },
}
SCSS
$custom: #ccb83b;
$custom-light: #dfcd79;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb83b",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 59
  },
  "hsl": {
    "h": 51.724,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.77766,
    "c": 0.14145,
    "h": 100
  },
  "luminance": 0.47434
}

Semantic roles & 50–950 ramp

primary
#CCB83B
secondary
#929AD1
accent
#5BE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB83B

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

Preview Lab → · Contrast checker → · Palette generator →

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