#C5C125#C5C125

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

Color values

HEX#C5C125
RGBrgb(197, 193, 37)
HSLhsl(59, 68%, 46%)
HSVhsv(59, 81%, 77%)
CMYKcmyk(0%, 2%, 81.2%, 22.7%)
CIE-LABlab(76.16, -15.10, 71.15)
CIE-LCHlch(76.16, 72.74, 101.98°)
OKLaboklab(78.93% -0.0499 0.1535)
OKLCHoklch(78.93% 0.161 108)
XYZxyz(42.4316, 50.1453, 9.1938)
Luminance0.5014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C125 #2529C5
analogous
#C57125 #C5C125 #79C525
triadic
#C5C125 #25C5C1 #C125C5
tetradic
#C5C125 #25C571 #2529C5 #C52579
square
#C5C125 #25C571 #2529C5 #C52579
split-complementary
#C5C125 #2579C5 #7125C5
monochromatic
#5E5C12 #918F1B #C5C125 #DDD94A #E7E47E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5C125#FFFFFF#000000##000000
##C5C1251.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)
#D4BE34
Tritanopia (blue-blind)
#D4B4A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c5c125;
/* rgb */ color: rgb(197, 193, 37);
/* oklch */ color: oklch(78.9% 0.161 108.0);
Tailwind
colors: {
  custom: {
    50: '#dbd36f',
    500: '#c5c125',
    950: '#000000',
  },
}
SCSS
$custom: #c5c125;
$custom-light: #dbd36f;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c125",
  "rgb": {
    "r": 197,
    "g": 193,
    "b": 37
  },
  "hsl": {
    "h": 58.5,
    "s": 68.376,
    "l": 45.882
  },
  "oklch": {
    "l": 0.7893,
    "c": 0.16141,
    "h": 108
  },
  "luminance": 0.50144
}

Semantic roles & 50–950 ramp

primary
#C5C125
secondary
#252769
accent
#41EB3D
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C5C125

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

Preview Lab → · Contrast checker → · Palette generator →

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