#C5C242#C5C242

#C5C242 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.3% C 0.146 H 108.0°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#C5C242
RGBrgb(197, 194, 66)
HSLhsl(59, 53%, 52%)
HSVhsv(59, 66%, 77%)
CMYKcmyk(0%, 1.5%, 66.5%, 22.7%)
CIE-LABlab(76.59, -14.35, 61.95)
CIE-LCHlch(76.59, 63.59, 103.04°)
OKLaboklab(79.32% -0.0452 0.1391)
OKLCHoklch(79.32% 0.146 108)
XYZxyz(43.3026, 50.8486, 12.6869)
Luminance0.5085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C242 #4245C5
analogous
#C58142 #C5C242 #87C542
triadic
#C5C242 #42C5C2 #C242C5
tetradic
#C5C242 #42C581 #4245C5 #C54287
square
#C5C242 #42C581 #4245C5 #C54287
split-complementary
#C5C242 #4287C5 #8142C5
monochromatic
#6C6A21 #9A982F #C5C242 #D3D171 #E2E0A0

Accessibility & contrast

On white

1.88
#C5C242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.17
#C5C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C242
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C242#FFFFFF#000000##000000
##C5C2421.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA30
Deuteranopia (green-blind)
#D4BF4A
Tritanopia (blue-blind)
#D3B6A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c5c242;
/* rgb */ color: rgb(197, 194, 66);
/* oklch */ color: oklch(79.3% 0.146 108.0);
Tailwind
colors: {
  custom: {
    50: '#dad47d',
    500: '#c5c242',
    950: '#000000',
  },
}
SCSS
$custom: #c5c242;
$custom-light: #dad47d;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c242",
  "rgb": {
    "r": 197,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 58.626,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.79323,
    "c": 0.14626,
    "h": 108
  },
  "luminance": 0.50847
}

Semantic roles & 50–950 ramp

primary
#C5C242
secondary
#363775
accent
#4FDC4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C5C242

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

Preview Lab → · Contrast checker → · Palette generator →

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