#C5B040#C5B040

#C5B040 is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.5% C 0.131 H 98.5°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#C5B040
RGBrgb(197, 176, 64)
HSLhsl(51, 53%, 51%)
HSVhsv(51, 68%, 77%)
CMYKcmyk(0%, 10.7%, 67.5%, 22.7%)
CIE-LABlab(71.75, -5.19, 57.80)
CIE-LCHlch(71.75, 58.03, 95.13°)
OKLaboklab(75.48% -0.0195 0.13)
OKLCHoklch(75.48% 0.131 98.5)
XYZxyz(39.4785, 43.2930, 11.1264)
Luminance0.4329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B040 #4055C5
analogous
#C56D40 #C5B040 #97C540
triadic
#C5B040 #40C5B0 #B040C5
tetradic
#C5B040 #40C56D #4055C5 #C54097
square
#C5B040 #40C56D #4055C5 #C54097
split-complementary
#C5B040 #4097C5 #6D40C5
monochromatic
#6A5F20 #99882F #C5B040 #D3C36F #E2D79E

Accessibility & contrast

On white

2.17
#C5B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#C5B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B040
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B040#FFFFFF#000000##000000
##C5B0401.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC31
Deuteranopia (green-blind)
#C6B346
Tritanopia (blue-blind)
#D4A399
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c5b040;
/* rgb */ color: rgb(197, 176, 64);
/* oklch */ color: oklch(75.5% 0.131 98.5);
Tailwind
colors: {
  custom: {
    50: '#dac77b',
    500: '#c5b040',
    950: '#000000',
  },
}
SCSS
$custom: #c5b040;
$custom-light: #dac77b;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b040",
  "rgb": {
    "r": 197,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 50.526,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75475,
    "c": 0.13145,
    "h": 98.5
  },
  "luminance": 0.43291
}

Semantic roles & 50–950 ramp

primary
#C5B040
secondary
#939CCE
accent
#62DD4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5B040

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

Preview Lab → · Contrast checker → · Palette generator →

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