#C5BA31#C5BA31

#C5BA31 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.5% C 0.149 H 104.6°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#C5BA31
RGBrgb(197, 186, 49)
HSLhsl(56, 60%, 48%)
HSVhsv(56, 75%, 77%)
CMYKcmyk(0%, 5.6%, 75.1%, 22.7%)
CIE-LABlab(74.32, -11.11, 65.95)
CIE-LCHlch(74.32, 66.88, 99.56°)
OKLaboklab(77.49% -0.0378 0.1446)
OKLCHoklch(77.49% 0.149 104.6)
XYZxyz(41.1410, 47.2115, 9.8508)
Luminance0.4721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5BA31 #313CC5
analogous
#C57031 #C5BA31 #86C531
triadic
#C5BA31 #31C5BA #BA31C5
tetradic
#C5BA31 #31C570 #313CC5 #C53186
square
#C5BA31 #31C570 #313CC5 #C53186
split-complementary
#C5BA31 #3186C5 #7031C5
monochromatic
#635D19 #948C25 #C5BA31 #D7CE5D #E3DC8E

Accessibility & contrast

On white

2.01
#C5BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#C5BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5BA31
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5BA31#FFFFFF#000000##000000
##C5BA311.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB313
Deuteranopia (green-blind)
#CFB93B
Tritanopia (blue-blind)
#D4ADA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c5ba31;
/* rgb */ color: rgb(197, 186, 49);
/* oklch */ color: oklch(77.5% 0.149 104.6);
Tailwind
colors: {
  custom: {
    50: '#dace74',
    500: '#c5ba31',
    950: '#000000',
  },
}
SCSS
$custom: #c5ba31;
$custom-light: #dace74;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ba31",
  "rgb": {
    "r": 197,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 55.541,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.77486,
    "c": 0.14942,
    "h": 104.6
  },
  "luminance": 0.4721
}

Semantic roles & 50–950 ramp

primary
#C5BA31
secondary
#858ACD
accent
#50E344
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C5BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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