#C5C040#C5C040

#C5C040 is a light, vivid yellow. Relative luminance 0.499; OKLCH L 78.9% C 0.146 H 107.1°. Best body text is #000000 at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#C5C040
RGBrgb(197, 192, 64)
HSLhsl(58, 53%, 51%)
HSVhsv(58, 68%, 77%)
CMYKcmyk(0%, 2.5%, 67.5%, 22.7%)
CIE-LABlab(76.03, -13.45, 62.17)
CIE-LCHlch(76.03, 63.61, 102.20°)
OKLaboklab(78.88% -0.0429 0.1392)
OKLCHoklch(78.88% 0.146 107.1)
XYZxyz(42.8026, 49.9412, 12.2344)
Luminance0.4994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C040 #4045C5
analogous
#C57D40 #C5C040 #87C540
triadic
#C5C040 #40C5C0 #C040C5
tetradic
#C5C040 #40C57D #4045C5 #C54087
square
#C5C040 #40C57D #4045C5 #C54087
split-complementary
#C5C040 #4087C5 #7D40C5
monochromatic
#6A6820 #99952F #C5C040 #D3CF6F #E2DF9E

Accessibility & contrast

On white

1.91
#C5C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.99
#C5C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C040
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C040#FFFFFF#000000##000000
##C5C0401.001.9110.9910.99
#FFFFFF1.911.0021.0021.00
#00000010.9921.001.001.00
##00000010.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c5c040;
/* rgb */ color: rgb(197, 192, 64);
/* oklch */ color: oklch(78.9% 0.146 107.1);
Tailwind
colors: {
  custom: {
    50: '#dad27c',
    500: '#c5c040',
    950: '#000000',
  },
}
SCSS
$custom: #c5c040;
$custom-light: #dad27c;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c040",
  "rgb": {
    "r": 197,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 57.744,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.78877,
    "c": 0.14569,
    "h": 107.1
  },
  "luminance": 0.4994
}

Semantic roles & 50–950 ramp

primary
#C5C040
secondary
#9395CE
accent
#50DD4B
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15140A
muted
#83827C

Preview Lab

Preview with #C5C040

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

Preview Lab → · Contrast checker → · Palette generator →

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