#C5B938#C5B938

#C5B938 is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.3% C 0.144 H 103.9°. Best body text is #000000 at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#C5B938
RGBrgb(197, 185, 56)
HSLhsl(55, 56%, 50%)
HSVhsv(55, 72%, 77%)
CMYKcmyk(0%, 6.1%, 71.6%, 22.7%)
CIE-LABlab(74.10, -10.28, 63.28)
CIE-LCHlch(74.10, 64.11, 99.23°)
OKLaboklab(77.32% -0.0348 0.1402)
OKLCHoklch(77.32% 0.144 103.9)
XYZxyz(41.0905, 46.8554, 10.6202)
Luminance0.4685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B938 #3844C5
analogous
#C57338 #C5B938 #8AC538
triadic
#C5B938 #38C5B9 #B938C5
tetradic
#C5B938 #38C573 #3844C5 #C5388A
square
#C5B938 #38C573 #3844C5 #C5388A
split-complementary
#C5B938 #388AC5 #7338C5
monochromatic
#665F1D #958C2A #C5B938 #D4CA67 #E1DB96

Accessibility & contrast

On white

2.02
#C5B938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.37
#C5B938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B938
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B938#FFFFFF#000000##000000
##C5B9381.002.0210.3710.37
#FFFFFF2.021.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB322
Deuteranopia (green-blind)
#CDB941
Tritanopia (blue-blind)
#D4ACA0
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c5b938;
/* rgb */ color: rgb(197, 185, 56);
/* oklch */ color: oklch(77.3% 0.144 103.9);
Tailwind
colors: {
  custom: {
    50: '#dacd77',
    500: '#c5b938',
    950: '#000000',
  },
}
SCSS
$custom: #c5b938;
$custom-light: #dacd77;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b938",
  "rgb": {
    "r": 197,
    "g": 185,
    "b": 56
  },
  "hsl": {
    "h": 54.894,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.77318,
    "c": 0.14444,
    "h": 103.9
  },
  "luminance": 0.46854
}

Semantic roles & 50–950 ramp

primary
#C5B938
secondary
#8C92CD
accent
#56DF49
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #C5B938

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

Preview Lab → · Contrast checker → · Palette generator →

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