#CCB841#CCB841

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

Color values

HEX#CCB841
RGBrgb(204, 184, 65)
HSLhsl(51, 58%, 53%)
HSVhsv(51, 68%, 80%)
CMYKcmyk(0%, 9.8%, 68.1%, 20%)
CIE-LABlab(74.51, -6.30, 60.42)
CIE-LCHlch(74.51, 60.75, 95.95°)
OKLaboklab(77.81% -0.0229 0.1355)
OKLCHoklch(77.81% 0.137 99.6)
XYZxyz(42.9984, 47.5020, 11.9039)
Luminance0.4750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB841 #4155CC
analogous
#CC7341 #CCB841 #9ACC41
triadic
#CCB841 #41CCB8 #B841CC
tetradic
#CCB841 #41CC73 #4155CC #CC419A
square
#CCB841 #41CC73 #4155CC #CC419A
split-complementary
#CCB841 #419ACC #7341CC
monochromatic
#74671F #A4932C #CCB841 #D9CA71 #E6DCA1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB841#FFFFFF#000000##000000
##CCB8411.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)
#C9B331
Deuteranopia (green-blind)
#CFBB48
Tritanopia (blue-blind)
#DBABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb841;
/* rgb */ color: rgb(204, 184, 65);
/* oklch */ color: oklch(77.8% 0.137 99.6);
Tailwind
colors: {
  custom: {
    50: '#dfcd7c',
    500: '#ccb841',
    950: '#000000',
  },
}
SCSS
$custom: #ccb841;
$custom-light: #dfcd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb841",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 65
  },
  "hsl": {
    "h": 51.367,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77812,
    "c": 0.13741,
    "h": 99.6
  },
  "luminance": 0.475
}

Semantic roles & 50–950 ramp

primary
#CCB841
secondary
#969FD3
accent
#5DE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB841

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

Preview Lab → · Contrast checker → · Palette generator →

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