#C4C040#C4C040

#C4C040 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.8% C 0.146 H 107.6°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#C4C040
RGBrgb(196, 192, 64)
HSLhsl(58, 53%, 51%)
HSVhsv(58, 67%, 77%)
CMYKcmyk(0%, 2%, 67.3%, 23.1%)
CIE-LABlab(75.95, -13.87, 62.06)
CIE-LCHlch(75.95, 63.59, 102.60°)
OKLaboklab(78.79% -0.044 0.139)
OKLCHoklch(78.79% 0.146 107.6)
XYZxyz(42.5415, 49.8066, 12.2222)
Luminance0.4980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4C040 #4044C4
analogous
#C47E40 #C4C040 #86C440
triadic
#C4C040 #40C4C0 #C040C4
tetradic
#C4C040 #40C47E #4044C4 #C44086
square
#C4C040 #40C47E #4044C4 #C44086
split-complementary
#C4C040 #4086C4 #7E40C4
monochromatic
#696720 #98952F #C4C040 #D2CF6F #E1DF9E

Accessibility & contrast

On white

1.92
#C4C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.96
#C4C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4C040
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4C040#FFFFFF#000000##000000
##C4C0401.001.9210.9610.96
#FFFFFF1.921.0021.0021.00
#00000010.9621.001.001.00
##00000010.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D2BD49
Tritanopia (blue-blind)
#D2B4A6
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #c4c040;
/* rgb */ color: rgb(196, 192, 64);
/* oklch */ color: oklch(78.8% 0.146 107.6);
Tailwind
colors: {
  custom: {
    50: '#d9d27c',
    500: '#c4c040',
    950: '#000000',
  },
}
SCSS
$custom: #c4c040;
$custom-light: #d9d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#c4c040",
  "rgb": {
    "r": 196,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 58.182,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.7879,
    "c": 0.14583,
    "h": 107.6
  },
  "luminance": 0.49805
}

Semantic roles & 50–950 ramp

primary
#C4C040
secondary
#9394CD
accent
#50DC4C
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15140A
muted
#83827C

Preview Lab

Preview with #C4C040

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

Preview Lab → · Contrast checker → · Palette generator →

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