#C5C031#C5C031

#C5C031 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.8% C 0.155 H 107.4°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#C5C031
RGBrgb(197, 192, 49)
HSLhsl(58, 60%, 48%)
HSVhsv(58, 75%, 77%)
CMYKcmyk(0%, 2.5%, 75.1%, 22.7%)
CIE-LABlab(75.94, -14.16, 67.45)
CIE-LCHlch(75.94, 68.92, 101.86°)
OKLaboklab(78.77% -0.0463 0.1478)
OKLCHoklch(78.77% 0.155 107.4)
XYZxyz(42.4317, 49.7928, 10.2810)
Luminance0.4979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C031 #3136C5
analogous
#C57631 #C5C031 #80C531
triadic
#C5C031 #31C5C0 #C031C5
tetradic
#C5C031 #31C576 #3136C5 #C53180
square
#C5C031 #31C576 #3136C5 #C53180
split-complementary
#C5C031 #3180C5 #7631C5
monochromatic
#636019 #949025 #C5C031 #D7D25D #E3E08E

Accessibility & contrast

On white

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

On black

10.96
#C5C031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C031
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C031#FFFFFF#000000##000000
##C5C0311.001.9210.9610.96
#FFFFFF1.921.0021.0021.00
#00000010.9621.001.001.00
##00000010.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B80F
Deuteranopia (green-blind)
#D3BE3C
Tritanopia (blue-blind)
#D4B3A5
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #c5c031;
/* rgb */ color: rgb(197, 192, 49);
/* oklch */ color: oklch(78.8% 0.155 107.4);
Tailwind
colors: {
  custom: {
    50: '#dad274',
    500: '#c5c031',
    950: '#000000',
  },
}
SCSS
$custom: #c5c031;
$custom-light: #dad274;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c031",
  "rgb": {
    "r": 197,
    "g": 192,
    "b": 49
  },
  "hsl": {
    "h": 57.973,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.78775,
    "c": 0.15485,
    "h": 107.4
  },
  "luminance": 0.49791
}

Semantic roles & 50–950 ramp

primary
#C5C031
secondary
#8587CD
accent
#4AE344
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #C5C031

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

Preview Lab → · Contrast checker → · Palette generator →

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