#CCB742#CCB742

#CCB742 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.6% C 0.136 H 99.0°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#CCB742
RGBrgb(204, 183, 66)
HSLhsl(51, 58%, 53%)
HSVhsv(51, 68%, 80%)
CMYKcmyk(0%, 10.3%, 67.6%, 20%)
CIE-LABlab(74.25, -5.72, 59.75)
CIE-LCHlch(74.25, 60.02, 95.47°)
OKLaboklab(77.61% -0.0212 0.1342)
OKLCHoklch(77.61% 0.136 99)
XYZxyz(42.8206, 47.0997, 11.9888)
Luminance0.4710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB742 #4257CC
analogous
#CC7242 #CCB742 #9CCC42
triadic
#CCB742 #42CCB7 #B742CC
tetradic
#CCB742 #42CC72 #4257CC #CC429C
square
#CCB742 #42CC72 #4257CC #CC429C
split-complementary
#CCB742 #429CCC #7242CC
monochromatic
#74671F #A4922C #CCB742 #D9C972 #E6DCA2

Accessibility & contrast

On white

2.02
#CCB742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.42
#CCB742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB742
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB742#FFFFFF#000000##000000
##CCB7421.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B232
Deuteranopia (green-blind)
#CEBA49
Tritanopia (blue-blind)
#DCAA9F
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb742;
/* rgb */ color: rgb(204, 183, 66);
/* oklch */ color: oklch(77.6% 0.136 99.0);
Tailwind
colors: {
  custom: {
    50: '#dfcc7d',
    500: '#ccb742',
    950: '#000000',
  },
}
SCSS
$custom: #ccb742;
$custom-light: #dfcc7d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb742",
  "rgb": {
    "r": 204,
    "g": 183,
    "b": 66
  },
  "hsl": {
    "h": 50.87,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.77611,
    "c": 0.1359,
    "h": 99
  },
  "luminance": 0.47098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCB742

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

Preview Lab → · Contrast checker → · Palette generator →

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