#CCB840#CCB840

#CCB840 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.8% C 0.138 H 99.7°. Best body text is #000000 at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#CCB840
RGBrgb(204, 184, 64)
HSLhsl(51, 58%, 53%)
HSVhsv(51, 69%, 80%)
CMYKcmyk(0%, 9.8%, 68.6%, 20%)
CIE-LABlab(74.50, -6.35, 60.81)
CIE-LCHlch(74.50, 61.14, 95.96°)
OKLaboklab(77.8% -0.0232 0.1362)
OKLCHoklch(77.8% 0.138 99.7)
XYZxyz(42.9697, 47.4905, 11.7527)
Luminance0.4749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB840 #4054CC
analogous
#CC7240 #CCB840 #9ACC40
triadic
#CCB840 #40CCB8 #B840CC
tetradic
#CCB840 #40CC72 #4054CC #CC409A
square
#CCB840 #40CC72 #4054CC #CC409A
split-complementary
#CCB840 #409ACC #7240CC
monochromatic
#73671F #A3922C #CCB840 #D9CA70 #E6DCA1

Accessibility & contrast

On white

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

On black

10.50
#CCB840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB840
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB840#FFFFFF#000000##000000
##CCB8401.002.0010.5010.50
#FFFFFF2.001.0021.0021.00
#00000010.5021.001.001.00
##00000010.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B32F
Deuteranopia (green-blind)
#CFBA47
Tritanopia (blue-blind)
#DCABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb840;
/* rgb */ color: rgb(204, 184, 64);
/* oklch */ color: oklch(77.8% 0.138 99.7);
Tailwind
colors: {
  custom: {
    50: '#dfcd7c',
    500: '#ccb840',
    950: '#000000',
  },
}
SCSS
$custom: #ccb840;
$custom-light: #dfcd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb840",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 51.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77804,
    "c": 0.13811,
    "h": 99.7
  },
  "luminance": 0.47489
}

Semantic roles & 50–950 ramp

primary
#CCB840
secondary
#959ED2
accent
#5DE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB840

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

Preview Lab → · Contrast checker → · Palette generator →

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