#C5B138#C5B138

#C5B138 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.6% C 0.138 H 99.6°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#C5B138
RGBrgb(197, 177, 56)
HSLhsl(51, 56%, 50%)
HSVhsv(51, 72%, 77%)
CMYKcmyk(0%, 10.2%, 71.6%, 22.7%)
CIE-LABlab(71.96, -6.13, 61.19)
CIE-LCHlch(71.96, 61.50, 95.72°)
OKLaboklab(75.62% -0.023 0.1358)
OKLCHoklch(75.62% 0.138 99.6)
XYZxyz(39.4638, 43.6020, 10.0779)
Luminance0.4360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B138 #384CC5
analogous
#C56A38 #C5B138 #93C538
triadic
#C5B138 #38C5B1 #B138C5
tetradic
#C5B138 #38C56A #384CC5 #C53893
square
#C5B138 #38C56A #384CC5 #C53893
split-complementary
#C5B138 #3893C5 #6A38C5
monochromatic
#665B1D #95862A #C5B138 #D4C467 #E1D796

Accessibility & contrast

On white

2.16
#C5B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#C5B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B138
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B138#FFFFFF#000000##000000
##C5B1381.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC25
Deuteranopia (green-blind)
#C8B440
Tritanopia (blue-blind)
#D4A499
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c5b138;
/* rgb */ color: rgb(197, 177, 56);
/* oklch */ color: oklch(75.6% 0.138 99.6);
Tailwind
colors: {
  custom: {
    50: '#dac776',
    500: '#c5b138',
    950: '#000000',
  },
}
SCSS
$custom: #c5b138;
$custom-light: #dac776;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b138",
  "rgb": {
    "r": 197,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 51.489,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.75622,
    "c": 0.13772,
    "h": 99.6
  },
  "luminance": 0.436
}

Semantic roles & 50–950 ramp

primary
#C5B138
secondary
#8C95CD
accent
#5EDF49
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C5B138

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

Preview Lab → · Contrast checker → · Palette generator →

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