#C5BA52#C5BA52

#C5BA52 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.8% C 0.126 H 103.3°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#C5BA52
RGBrgb(197, 186, 82)
HSLhsl(54, 50%, 55%)
HSVhsv(54, 58%, 77%)
CMYKcmyk(0%, 5.6%, 58.4%, 22.7%)
CIE-LABlab(74.57, -9.22, 52.98)
CIE-LCHlch(74.57, 53.77, 99.88°)
OKLaboklab(77.76% -0.0289 0.1224)
OKLCHoklch(77.76% 0.126 103.3)
XYZxyz(42.1093, 47.5988, 14.9504)
Luminance0.4760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5BA52 #525DC5
analogous
#C58152 #C5BA52 #97C552
triadic
#C5BA52 #52C5BA #BA52C5
tetradic
#C5BA52 #52C581 #525DC5 #C55297
square
#C5BA52 #52C581 #525DC5 #C55297
split-complementary
#C5BA52 #5297C5 #8152C5
monochromatic
#756E27 #A39937 #C5BA52 #D4CC80 #E4DFAE

Accessibility & contrast

On white

2.00
#C5BA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.52
#C5BA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5BA52
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5BA52#FFFFFF#000000##000000
##C5BA521.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B447
Deuteranopia (green-blind)
#CDBA57
Tritanopia (blue-blind)
#D3AEA3
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c5ba52;
/* rgb */ color: rgb(197, 186, 82);
/* oklch */ color: oklch(77.8% 0.126 103.3);
Tailwind
colors: {
  custom: {
    50: '#d9ce86',
    500: '#c5ba52',
    950: '#000000',
  },
}
SCSS
$custom: #c5ba52;
$custom-light: #d9ce86;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ba52",
  "rgb": {
    "r": 197,
    "g": 186,
    "b": 82
  },
  "hsl": {
    "h": 54.261,
    "s": 49.784,
    "l": 54.706
  },
  "oklch": {
    "l": 0.77761,
    "c": 0.12576,
    "h": 103.3
  },
  "luminance": 0.47597
}

Semantic roles & 50–950 ramp

primary
#C5BA52
secondary
#A1A6D2
accent
#5CD94E
background
#FDFCF8
surface
#FBF9F0
border
#D4D2CB
text
#15130B
muted
#83827C

Preview Lab

Preview with #C5BA52

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

Preview Lab → · Contrast checker → · Palette generator →

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