#C4C128#C4C128

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

Color values

HEX#C4C128
RGBrgb(196, 193, 40)
HSLhsl(59, 66%, 46%)
HSVhsv(59, 80%, 77%)
CMYKcmyk(0%, 1.5%, 79.6%, 23.1%)
CIE-LABlab(76.09, -15.43, 70.25)
CIE-LCHlch(76.09, 71.93, 102.39°)
OKLaboklab(78.86% -0.0505 0.1522)
OKLCHoklch(78.86% 0.16 108.4)
XYZxyz(42.2196, 50.0303, 9.4399)
Luminance0.5003 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4C128 #282BC4
analogous
#C47328 #C4C128 #79C428
triadic
#C4C128 #28C4C1 #C128C4
tetradic
#C4C128 #28C473 #282BC4 #C42879
square
#C4C128 #28C473 #282BC4 #C42879
split-complementary
#C4C128 #2879C4 #7328C4
monochromatic
#5E5D13 #918F1E #C4C128 #DBD84E #E5E381

Accessibility & contrast

On white

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

On black

11.01
#C4C128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4C128
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4C128#FFFFFF#000000##000000
##C4C1281.001.9111.0111.01
#FFFFFF1.911.0021.0021.00
#00000011.0121.001.001.00
##00000011.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2B900
Deuteranopia (green-blind)
#D4BE36
Tritanopia (blue-blind)
#D3B4A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c4c128;
/* rgb */ color: rgb(196, 193, 40);
/* oklch */ color: oklch(78.9% 0.160 108.4);
Tailwind
colors: {
  custom: {
    50: '#dad371',
    500: '#c4c128',
    950: '#000000',
  },
}
SCSS
$custom: #c4c128;
$custom-light: #dad371;
$custom-dark: #000000;
JSON
{
  "hex": "#c4c128",
  "rgb": {
    "r": 196,
    "g": 193,
    "b": 40
  },
  "hsl": {
    "h": 58.846,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.78858,
    "c": 0.16032,
    "h": 108.4
  },
  "luminance": 0.50029
}

Semantic roles & 50–950 ramp

primary
#C4C128
secondary
#272869
accent
#42E93F
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151408
muted
#84837D

Preview Lab

Preview with #C4C128

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

Preview Lab → · Contrast checker → · Palette generator →

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