#CCC742#CCC742

#CCC742 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.0% C 0.150 H 107.2°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CCC742
RGBrgb(204, 199, 66)
HSLhsl(58, 58%, 53%)
HSVhsv(58, 68%, 80%)
CMYKcmyk(0%, 2.5%, 67.6%, 20%)
CIE-LABlab(78.51, -13.92, 64.08)
CIE-LCHlch(78.51, 65.57, 102.25°)
OKLaboklab(80.99% -0.0444 0.1434)
OKLCHoklch(80.99% 0.15 107.2)
XYZxyz(46.3103, 54.0791, 13.1521)
Luminance0.5408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC742 #4247CC
analogous
#CC8242 #CCC742 #8CCC42
triadic
#CCC742 #42CCC7 #C742CC
tetradic
#CCC742 #42CC82 #4247CC #CC428C
square
#CCC742 #42CC82 #4247CC #CC428C
split-complementary
#CCC742 #428CCC #8242CC
monochromatic
#74711F #A4A02C #CCC742 #D9D572 #E6E4A2

Accessibility & contrast

On white

1.78
#CCC742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CCC742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC742
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC742#FFFFFF#000000##000000
##CCC7421.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DAC54B
Tritanopia (blue-blind)
#DABAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc742;
/* rgb */ color: rgb(204, 199, 66);
/* oklch */ color: oklch(81.0% 0.150 107.2);
Tailwind
colors: {
  custom: {
    50: '#dfd77e',
    500: '#ccc742',
    950: '#000000',
  },
}
SCSS
$custom: #ccc742;
$custom-light: #dfd77e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc742",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 57.826,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.80994,
    "c": 0.15009,
    "h": 107.2
  },
  "luminance": 0.54078
}

Semantic roles & 50–950 ramp

primary
#CCC742
secondary
#35387D
accent
#4DE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC742

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

Preview Lab → · Contrast checker → · Palette generator →

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