#C5B931#C5B931

#C5B931 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 77.3% C 0.149 H 104.2°. Best body text is #000000 at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#C5B931
RGBrgb(197, 185, 49)
HSLhsl(55, 60%, 48%)
HSVhsv(55, 75%, 77%)
CMYKcmyk(0%, 6.1%, 75.1%, 22.7%)
CIE-LABlab(74.06, -10.59, 65.70)
CIE-LCHlch(74.06, 66.55, 99.16°)
OKLaboklab(77.27% -0.0363 0.144)
OKLCHoklch(77.27% 0.149 104.2)
XYZxyz(40.9311, 46.7917, 9.7808)
Luminance0.4679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B931 #313DC5
analogous
#C56F31 #C5B931 #87C531
triadic
#C5B931 #31C5B9 #B931C5
tetradic
#C5B931 #31C56F #313DC5 #C53187
square
#C5B931 #31C56F #313DC5 #C53187
split-complementary
#C5B931 #3187C5 #6F31C5
monochromatic
#635D19 #948B25 #C5B931 #D7CD5D #E3DC8E

Accessibility & contrast

On white

2.03
#C5B931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.36
#C5B931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B931
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B931#FFFFFF#000000##000000
##C5B9311.002.0310.3610.36
#FFFFFF2.031.0021.0021.00
#00000010.3621.001.001.00
##00000010.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB314
Deuteranopia (green-blind)
#CEB93B
Tritanopia (blue-blind)
#D4AC9F
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c5b931;
/* rgb */ color: rgb(197, 185, 49);
/* oklch */ color: oklch(77.3% 0.149 104.2);
Tailwind
colors: {
  custom: {
    50: '#dacd74',
    500: '#c5b931',
    950: '#000000',
  },
}
SCSS
$custom: #c5b931;
$custom-light: #dacd74;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b931",
  "rgb": {
    "r": 197,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 55.135,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.77272,
    "c": 0.14855,
    "h": 104.2
  },
  "luminance": 0.4679
}

Semantic roles & 50–950 ramp

primary
#C5B931
secondary
#858BCD
accent
#51E344
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C5B931

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

Preview Lab → · Contrast checker → · Palette generator →

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