#C5C940#C5C940

#C5C940 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 80.8% C 0.155 H 111.0°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#C5C940
RGBrgb(197, 201, 64)
HSLhsl(62, 56%, 52%)
HSVhsv(62, 68%, 79%)
CMYKcmyk(2%, 0%, 68.2%, 21.2%)
CIE-LABlab(78.47, -17.97, 64.62)
CIE-LCHlch(78.47, 67.07, 105.54°)
OKLaboklab(80.82% -0.0556 0.1444)
OKLCHoklch(80.82% 0.155 111)
XYZxyz(44.8394, 54.0149, 12.9134)
Luminance0.5401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C940 #4440C9
analogous
#C98940 #C5C940 #81C940
triadic
#C5C940 #40C5C9 #C940C5
tetradic
#C5C940 #40C989 #4440C9 #C94081
square
#C5C940 #40C989 #4440C9 #C94081
split-complementary
#C5C940 #4081C9 #8940C9
monochromatic
#6D6F1F #9C9F2D #C5C940 #D3D670 #E2E49F

Accessibility & contrast

On white

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

On black

11.80
#C5C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C940
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C940#FFFFFF#000000##000000
##C5C9401.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#D9C44A
Tritanopia (blue-blind)
#D2BDAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c5c940;
/* rgb */ color: rgb(197, 201, 64);
/* oklch */ color: oklch(80.8% 0.155 111.0);
Tailwind
colors: {
  custom: {
    50: '#dad97d',
    500: '#c5c940',
    950: '#000000',
  },
}
SCSS
$custom: #c5c940;
$custom-light: #dad97d;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c940",
  "rgb": {
    "r": 197,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 61.752,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.80822,
    "c": 0.15472,
    "h": 111
  },
  "luminance": 0.54014
}

Semantic roles & 50–950 ramp

primary
#C5C940
secondary
#373578
accent
#49DF4D
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C5C940

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

Preview Lab → · Contrast checker → · Palette generator →

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