#C5CD28#C5CD28

#C5CD28 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.6% C 0.172 H 112.6°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#C5CD28
RGBrgb(197, 205, 40)
HSLhsl(63, 67%, 48%)
HSVhsv(63, 80%, 80%)
CMYKcmyk(3.9%, 0%, 80.5%, 19.6%)
CIE-LABlab(79.44, -20.97, 73.20)
CIE-LCHlch(79.44, 76.14, 105.98°)
OKLaboklab(81.56% -0.0659 0.1585)
OKLCHoklch(81.56% 0.172 112.6)
XYZxyz(45.2418, 55.6873, 10.3726)
Luminance0.5569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5CD28 #3028CD
analogous
#CD8228 #C5CD28 #72CD28
triadic
#C5CD28 #28C5CD #CD28C5
tetradic
#C5CD28 #28CD82 #3028CD #CD2872
square
#C5CD28 #28CD82 #3028CD #CD2872
split-complementary
#C5CD28 #2872CD #8228CD
monochromatic
#636714 #949A1E #C5CD28 #D7DE54 #E3E888

Accessibility & contrast

On white

1.73
#C5CD28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#C5CD28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5CD28
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5CD28#FFFFFF#000000##000000
##C5CD281.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#DDC738
Tritanopia (blue-blind)
#D3C0AF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c5cd28;
/* rgb */ color: rgb(197, 205, 40);
/* oklch */ color: oklch(81.6% 0.172 112.6);
Tailwind
colors: {
  custom: {
    50: '#dbdc72',
    500: '#c5cd28',
    950: '#000000',
  },
}
SCSS
$custom: #c5cd28;
$custom-light: #dbdc72;
$custom-dark: #000000;
JSON
{
  "hex": "#c5cd28",
  "rgb": {
    "r": 197,
    "g": 205,
    "b": 40
  },
  "hsl": {
    "h": 62.909,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.81555,
    "c": 0.17163,
    "h": 112.6
  },
  "luminance": 0.55686
}

Semantic roles & 50–950 ramp

primary
#C5CD28
secondary
#2C2871
accent
#3EEA46
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151509
muted
#84847D

Preview Lab

Preview with #C5CD28

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

Preview Lab → · Contrast checker → · Palette generator →

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