#C5B042#C5B042

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

Color values

HEX#C5B042
RGBrgb(197, 176, 66)
HSLhsl(50, 53%, 52%)
HSVhsv(50, 66%, 77%)
CMYKcmyk(0%, 10.7%, 66.5%, 22.7%)
CIE-LABlab(71.77, -5.07, 56.98)
CIE-LCHlch(71.77, 57.20, 95.09°)
OKLaboklab(75.49% -0.0189 0.1286)
OKLCHoklch(75.49% 0.13 98.4)
XYZxyz(39.5364, 43.3162, 11.4315)
Luminance0.4331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B042 #4257C5
analogous
#C56F42 #C5B042 #98C542
triadic
#C5B042 #42C5B0 #B042C5
tetradic
#C5B042 #42C56F #4257C5 #C54298
square
#C5B042 #42C56F #4257C5 #C54298
split-complementary
#C5B042 #4298C5 #6F42C5
monochromatic
#6C6021 #9A892F #C5B042 #D3C471 #E2D7A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5B042#FFFFFF#000000##000000
##C5B0421.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)
#C1AC34
Deuteranopia (green-blind)
#C6B348
Tritanopia (blue-blind)
#D4A399
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c5b042;
/* rgb */ color: rgb(197, 176, 66);
/* oklch */ color: oklch(75.5% 0.130 98.4);
Tailwind
colors: {
  custom: {
    50: '#dac77c',
    500: '#c5b042',
    950: '#000000',
  },
}
SCSS
$custom: #c5b042;
$custom-light: #dac77c;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b042",
  "rgb": {
    "r": 197,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 50.382,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75492,
    "c": 0.12998,
    "h": 98.4
  },
  "luminance": 0.43314
}

Semantic roles & 50–950 ramp

primary
#C5B042
secondary
#959ECE
accent
#63DC4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5B042

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

Preview Lab → · Contrast checker → · Palette generator →

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