#C5C428#C5C428

#C5C428 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.6% C 0.163 H 109.2°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#C5C428
RGBrgb(197, 196, 40)
HSLhsl(60, 66%, 46%)
HSVhsv(60, 80%, 77%)
CMYKcmyk(0%, 0.5%, 79.7%, 22.7%)
CIE-LABlab(76.98, -16.51, 71.07)
CIE-LCHlch(76.98, 72.96, 103.08°)
OKLaboklab(79.59% -0.0536 0.1539)
OKLCHoklch(79.59% 0.163 109.2)
XYZxyz(43.1506, 51.5048, 9.6755)
Luminance0.5150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C428 #2829C5
analogous
#C57628 #C5C428 #78C528
triadic
#C5C428 #28C5C4 #C428C5
tetradic
#C5C428 #28C576 #2829C5 #C52878
square
#C5C428 #28C576 #2829C5 #C52878
split-complementary
#C5C428 #2878C5 #7628C5
monochromatic
#5F5F13 #92911E #C5C428 #DBDA4F #E6E582

Accessibility & contrast

On white

1.86
#C5C428 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.30
#C5C428 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C428
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C428#FFFFFF#000000##000000
##C5C4281.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC00
Deuteranopia (green-blind)
#D6C037
Tritanopia (blue-blind)
#D3B7A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c5c428;
/* rgb */ color: rgb(197, 196, 40);
/* oklch */ color: oklch(79.6% 0.163 109.2);
Tailwind
colors: {
  custom: {
    50: '#dbd571',
    500: '#c5c428',
    950: '#000000',
  },
}
SCSS
$custom: #c5c428;
$custom-light: #dbd571;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c428",
  "rgb": {
    "r": 197,
    "g": 196,
    "b": 40
  },
  "hsl": {
    "h": 59.618,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.79593,
    "c": 0.16293,
    "h": 109.2
  },
  "luminance": 0.51503
}

Semantic roles & 50–950 ramp

primary
#C5C428
secondary
#27276A
accent
#40E93F
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C5C428

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

Preview Lab → · Contrast checker → · Palette generator →

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