#C5B338#C5B338

#C5B338 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.0% C 0.139 H 100.7°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#C5B338
RGBrgb(197, 179, 56)
HSLhsl(52, 56%, 50%)
HSVhsv(52, 72%, 77%)
CMYKcmyk(0%, 9.1%, 71.6%, 22.7%)
CIE-LABlab(72.49, -7.18, 61.71)
CIE-LCHlch(72.49, 62.13, 96.63°)
OKLaboklab(76.04% -0.026 0.1369)
OKLCHoklch(76.04% 0.139 100.7)
XYZxyz(39.8617, 44.3979, 10.2106)
Luminance0.4440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B338 #384AC5
analogous
#C56C38 #C5B338 #91C538
triadic
#C5B338 #38C5B3 #B338C5
tetradic
#C5B338 #38C56C #384AC5 #C53891
square
#C5B338 #38C56C #384AC5 #C53891
split-complementary
#C5B338 #3891C5 #6C38C5
monochromatic
#665C1D #95882A #C5B338 #D4C667 #E1D896

Accessibility & contrast

On white

2.13
#C5B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#C5B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B338
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B338#FFFFFF#000000##000000
##C5B3381.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE24
Deuteranopia (green-blind)
#C9B540
Tritanopia (blue-blind)
#D4A69B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c5b338;
/* rgb */ color: rgb(197, 179, 56);
/* oklch */ color: oklch(76.0% 0.139 100.7);
Tailwind
colors: {
  custom: {
    50: '#dac977',
    500: '#c5b338',
    950: '#000000',
  },
}
SCSS
$custom: #c5b338;
$custom-light: #dac977;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b338",
  "rgb": {
    "r": 197,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 52.34,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.76044,
    "c": 0.13932,
    "h": 100.7
  },
  "luminance": 0.44396
}

Semantic roles & 50–950 ramp

primary
#C5B338
secondary
#8C94CD
accent
#5CDF49
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C5B338

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

Preview Lab → · Contrast checker → · Palette generator →

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