#C5C042#C5C042

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

Color values

HEX#C5C042
RGBrgb(197, 192, 66)
HSLhsl(58, 53%, 52%)
HSVhsv(58, 66%, 77%)
CMYKcmyk(0%, 2.5%, 66.5%, 22.7%)
CIE-LABlab(76.05, -13.33, 61.40)
CIE-LCHlch(76.05, 62.83, 102.25°)
OKLaboklab(78.89% -0.0423 0.1379)
OKLCHoklch(78.89% 0.144 107.1)
XYZxyz(42.8605, 49.9644, 12.5396)
Luminance0.4996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C042 #4247C5
analogous
#C57F42 #C5C042 #89C542
triadic
#C5C042 #42C5C0 #C042C5
tetradic
#C5C042 #42C57F #4247C5 #C54289
square
#C5C042 #42C57F #4247C5 #C54289
split-complementary
#C5C042 #4289C5 #7F42C5
monochromatic
#6C6921 #9A962F #C5C042 #D3D071 #E2DFA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5C042#FFFFFF#000000##000000
##C5C0421.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)
#D0B930
Deuteranopia (green-blind)
#D2BE4A
Tritanopia (blue-blind)
#D3B4A6
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #c5c042;
/* rgb */ color: rgb(197, 192, 66);
/* oklch */ color: oklch(78.9% 0.144 107.1);
Tailwind
colors: {
  custom: {
    50: '#dad27d',
    500: '#c5c042',
    950: '#000000',
  },
}
SCSS
$custom: #c5c042;
$custom-light: #dad27d;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c042",
  "rgb": {
    "r": 197,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 57.71,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.78892,
    "c": 0.14429,
    "h": 107.1
  },
  "luminance": 0.49963
}

Semantic roles & 50–950 ramp

primary
#C5C042
secondary
#9597CE
accent
#51DC4B
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15140A
muted
#83827C

Preview Lab

Preview with #C5C042

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

Preview Lab → · Contrast checker → · Palette generator →

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