#CCC740#CCC740

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

Color values

HEX#CCC740
RGBrgb(204, 199, 64)
HSLhsl(58, 58%, 53%)
HSVhsv(58, 69%, 80%)
CMYKcmyk(0%, 2.5%, 68.6%, 20%)
CIE-LABlab(78.49, -14.02, 64.83)
CIE-LCHlch(78.49, 66.33, 102.21°)
OKLaboklab(80.98% -0.0449 0.1446)
OKLCHoklch(80.98% 0.151 107.2)
XYZxyz(46.2524, 54.0559, 12.8469)
Luminance0.5405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC740 #4045CC
analogous
#CC8140 #CCC740 #8BCC40
triadic
#CCC740 #40CCC7 #C740CC
tetradic
#CCC740 #40CC81 #4045CC #CC408B
square
#CCC740 #40CC81 #4045CC #CC408B
split-complementary
#CCC740 #408BCC #8140CC
monochromatic
#73701F #A39F2C #CCC740 #D9D570 #E6E3A1

Accessibility & contrast

On white

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

On black

11.81
#CCC740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC740
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC740#FFFFFF#000000##000000
##CCC7401.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DAC549
Tritanopia (blue-blind)
#DBBAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc740;
/* rgb */ color: rgb(204, 199, 64);
/* oklch */ color: oklch(81.0% 0.151 107.2);
Tailwind
colors: {
  custom: {
    50: '#dfd77d',
    500: '#ccc740',
    950: '#000000',
  },
}
SCSS
$custom: #ccc740;
$custom-light: #dfd77d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc740",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 57.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80979,
    "c": 0.15144,
    "h": 107.2
  },
  "luminance": 0.54054
}

Semantic roles & 50–950 ramp

primary
#CCC740
secondary
#34377C
accent
#4CE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC740

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

Preview Lab → · Contrast checker → · Palette generator →

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