#C4C940#C4C940

#C4C940 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 80.7% C 0.155 H 111.5°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#C4C940
RGBrgb(196, 201, 64)
HSLhsl(62, 56%, 52%)
HSVhsv(62, 68%, 79%)
CMYKcmyk(2.5%, 0%, 68.2%, 21.2%)
CIE-LABlab(78.39, -18.38, 64.51)
CIE-LCHlch(78.39, 67.08, 105.91°)
OKLaboklab(80.74% -0.0567 0.1442)
OKLCHoklch(80.74% 0.155 111.5)
XYZxyz(44.5784, 53.8803, 12.9012)
Luminance0.5388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4C940 #4540C9
analogous
#C98A40 #C4C940 #80C940
triadic
#C4C940 #40C4C9 #C940C4
tetradic
#C4C940 #40C98A #4540C9 #C94080
square
#C4C940 #40C98A #4540C9 #C94080
split-complementary
#C4C940 #4080C9 #8A40C9
monochromatic
#6C6F1F #9B9F2D #C4C940 #D3D670 #E1E49F

Accessibility & contrast

On white

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

On black

11.78
#C4C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4C940
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4C940#FFFFFF#000000##000000
##C4C9401.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c4c940;
/* rgb */ color: rgb(196, 201, 64);
/* oklch */ color: oklch(80.7% 0.155 111.5);
Tailwind
colors: {
  custom: {
    50: '#d9d97d',
    500: '#c4c940',
    950: '#000000',
  },
}
SCSS
$custom: #c4c940;
$custom-light: #d9d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#c4c940",
  "rgb": {
    "r": 196,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 62.19,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.8074,
    "c": 0.15495,
    "h": 111.5
  },
  "luminance": 0.53879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C4C940

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

Preview Lab → · Contrast checker → · Palette generator →

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