#C5C028#C5C028

#C5C028 is a light, vivid yellow. Relative luminance 0.497; OKLCH L 78.7% C 0.159 H 107.5°. Best body text is #000000 at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#C5C028
RGBrgb(197, 192, 40)
HSLhsl(58, 66%, 46%)
HSVhsv(58, 80%, 77%)
CMYKcmyk(0%, 2.5%, 79.7%, 22.7%)
CIE-LABlab(75.90, -14.50, 70.12)
CIE-LCHlch(75.90, 71.60, 101.68°)
OKLaboklab(78.73% -0.048 0.1518)
OKLCHoklch(78.73% 0.159 107.5)
XYZxyz(42.2604, 49.7243, 9.3787)
Luminance0.4972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C028 #282DC5
analogous
#C57228 #C5C028 #7CC528
triadic
#C5C028 #28C5C0 #C028C5
tetradic
#C5C028 #28C572 #282DC5 #C5287C
square
#C5C028 #28C572 #282DC5 #C5287C
split-complementary
#C5C028 #287CC5 #7228C5
monochromatic
#5F5D13 #928E1E #C5C028 #DBD74F #E6E282

Accessibility & contrast

On white

1.92
#C5C028 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.94
#C5C028 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C028
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C028#FFFFFF#000000##000000
##C5C0281.001.9210.9410.94
#FFFFFF1.921.0021.0021.00
#00000010.9421.001.001.00
##00000010.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B800
Deuteranopia (green-blind)
#D3BD36
Tritanopia (blue-blind)
#D4B3A4
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #c5c028;
/* rgb */ color: rgb(197, 192, 40);
/* oklch */ color: oklch(78.7% 0.159 107.5);
Tailwind
colors: {
  custom: {
    50: '#dbd270',
    500: '#c5c028',
    950: '#000000',
  },
}
SCSS
$custom: #c5c028;
$custom-light: #dbd270;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c028",
  "rgb": {
    "r": 197,
    "g": 192,
    "b": 40
  },
  "hsl": {
    "h": 58.089,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.78728,
    "c": 0.15922,
    "h": 107.5
  },
  "luminance": 0.49723
}

Semantic roles & 50–950 ramp

primary
#C5C028
secondary
#7A7DCE
accent
#44E93F
background
#FEFCF7
surface
#FCF9ED
border
#D5D2C8
text
#161408
muted
#84827B

Preview Lab

Preview with #C5C028

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

Preview Lab → · Contrast checker → · Palette generator →

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