#C5B340#C5B340

#C5B340 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.1% C 0.134 H 100.3°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#C5B340
RGBrgb(197, 179, 64)
HSLhsl(52, 53%, 51%)
HSVhsv(52, 68%, 77%)
CMYKcmyk(0%, 9.1%, 67.5%, 22.7%)
CIE-LABlab(72.55, -6.76, 58.62)
CIE-LCHlch(72.55, 59.00, 96.58°)
OKLaboklab(76.11% -0.0239 0.1317)
OKLCHoklch(76.11% 0.134 100.3)
XYZxyz(40.0732, 44.4825, 11.3247)
Luminance0.4448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B340 #4052C5
analogous
#C57040 #C5B340 #94C540
triadic
#C5B340 #40C5B3 #B340C5
tetradic
#C5B340 #40C570 #4052C5 #C54094
square
#C5B340 #40C570 #4052C5 #C54094
split-complementary
#C5B340 #4094C5 #7040C5
monochromatic
#6A6020 #998B2F #C5B340 #D3C66F #E2D89E

Accessibility & contrast

On white

2.12
#C5B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#C5B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B340
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B340#FFFFFF#000000##000000
##C5B3401.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c5b340;
/* rgb */ color: rgb(197, 179, 64);
/* oklch */ color: oklch(76.1% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#dac97b',
    500: '#c5b340',
    950: '#000000',
  },
}
SCSS
$custom: #c5b340;
$custom-light: #dac97b;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b340",
  "rgb": {
    "r": 197,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 51.88,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76106,
    "c": 0.1339,
    "h": 100.3
  },
  "luminance": 0.44481
}

Semantic roles & 50–950 ramp

primary
#C5B340
secondary
#939BCE
accent
#5FDD4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5B340

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

Preview Lab → · Contrast checker → · Palette generator →

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