#C5C128#C5C128

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

Color values

HEX#C5C128
RGBrgb(197, 193, 40)
HSLhsl(58, 66%, 46%)
HSVhsv(58, 80%, 77%)
CMYKcmyk(0%, 2%, 79.7%, 22.7%)
CIE-LABlab(76.17, -15.00, 70.36)
CIE-LCHlch(76.17, 71.94, 102.04°)
OKLaboklab(78.94% -0.0494 0.1523)
OKLCHoklch(78.94% 0.16 108)
XYZxyz(42.4807, 50.1649, 9.4522)
Luminance0.5016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C128 #282CC5
analogous
#C57328 #C5C128 #7BC528
triadic
#C5C128 #28C5C1 #C128C5
tetradic
#C5C128 #28C573 #282CC5 #C5287B
square
#C5C128 #28C573 #282CC5 #C5287B
split-complementary
#C5C128 #287BC5 #7328C5
monochromatic
#5F5D13 #928F1E #C5C128 #DBD84F #E6E382

Accessibility & contrast

On white

1.90
#C5C128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.03
#C5C128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C128
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C128#FFFFFF#000000##000000
##C5C1281.001.9011.0311.03
#FFFFFF1.901.0021.0021.00
#00000011.0321.001.001.00
##00000011.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c5c128;
/* rgb */ color: rgb(197, 193, 40);
/* oklch */ color: oklch(78.9% 0.160 108.0);
Tailwind
colors: {
  custom: {
    50: '#dbd371',
    500: '#c5c128',
    950: '#000000',
  },
}
SCSS
$custom: #c5c128;
$custom-light: #dbd371;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c128",
  "rgb": {
    "r": 197,
    "g": 193,
    "b": 40
  },
  "hsl": {
    "h": 58.471,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.78944,
    "c": 0.16014,
    "h": 108
  },
  "luminance": 0.50163
}

Semantic roles & 50–950 ramp

primary
#C5C128
secondary
#27296A
accent
#43E93F
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C5C128

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

Preview Lab → · Contrast checker → · Palette generator →

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