#C5C126#C5C126

#C5C126 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#C5C126
RGBrgb(197, 193, 38)
HSLhsl(58, 68%, 46%)
HSVhsv(58, 81%, 77%)
CMYKcmyk(0%, 2%, 80.7%, 22.7%)
CIE-LABlab(76.16, -15.07, 70.89)
CIE-LCHlch(76.16, 72.48, 102.00°)
OKLaboklab(78.94% -0.0497 0.1531)
OKLCHoklch(78.94% 0.161 108)
XYZxyz(42.4475, 50.1517, 9.2776)
Luminance0.5015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C126 #262AC5
analogous
#C57226 #C5C126 #79C526
triadic
#C5C126 #26C5C1 #C126C5
tetradic
#C5C126 #26C572 #262AC5 #C52679
square
#C5C126 #26C572 #262AC5 #C52679
split-complementary
#C5C126 #2679C5 #7226C5
monochromatic
#5E5C12 #928F1C #C5C126 #DCD94C #E6E47F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #c5c126;
/* rgb */ color: rgb(197, 193, 38);
/* oklch */ color: oklch(78.9% 0.161 108.0);
Tailwind
colors: {
  custom: {
    50: '#dbd370',
    500: '#c5c126',
    950: '#000000',
  },
}
SCSS
$custom: #c5c126;
$custom-light: #dbd370;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c126",
  "rgb": {
    "r": 197,
    "g": 193,
    "b": 38
  },
  "hsl": {
    "h": 58.491,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.78935,
    "c": 0.16099,
    "h": 108
  },
  "luminance": 0.5015
}

Semantic roles & 50–950 ramp

primary
#C5C126
secondary
#26276A
accent
#42EB3D
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C5C126

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

Preview Lab → · Contrast checker → · Palette generator →

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