#CCB842#CCB842

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

Color values

HEX#CCB842
RGBrgb(204, 184, 66)
HSLhsl(51, 58%, 53%)
HSVhsv(51, 68%, 80%)
CMYKcmyk(0%, 9.8%, 67.6%, 20%)
CIE-LABlab(74.52, -6.24, 60.02)
CIE-LCHlch(74.52, 60.34, 95.94°)
OKLaboklab(77.82% -0.0226 0.1348)
OKLCHoklch(77.82% 0.137 99.5)
XYZxyz(43.0276, 47.5137, 12.0578)
Luminance0.4751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB842 #4256CC
analogous
#CC7342 #CCB842 #9BCC42
triadic
#CCB842 #42CCB8 #B842CC
tetradic
#CCB842 #42CC73 #4256CC #CC429B
square
#CCB842 #42CC73 #4256CC #CC429B
split-complementary
#CCB842 #429BCC #7342CC
monochromatic
#74681F #A4932C #CCB842 #D9CA72 #E6DCA2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB842#FFFFFF#000000##000000
##CCB8421.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)
#C9B332
Deuteranopia (green-blind)
#CFBB49
Tritanopia (blue-blind)
#DBABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb842;
/* rgb */ color: rgb(204, 184, 66);
/* oklch */ color: oklch(77.8% 0.137 99.5);
Tailwind
colors: {
  custom: {
    50: '#dfcd7d',
    500: '#ccb842',
    950: '#000000',
  },
}
SCSS
$custom: #ccb842;
$custom-light: #dfcd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb842",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 51.304,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.77821,
    "c": 0.13671,
    "h": 99.5
  },
  "luminance": 0.47512
}

Semantic roles & 50–950 ramp

primary
#CCB842
secondary
#97A0D3
accent
#5DE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB842

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

Preview Lab → · Contrast checker → · Palette generator →

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