#C5BA38#C5BA38

#C5BA38 is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.5% C 0.145 H 104.4°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#C5BA38
RGBrgb(197, 186, 56)
HSLhsl(55, 56%, 50%)
HSVhsv(55, 72%, 77%)
CMYKcmyk(0%, 5.6%, 71.6%, 22.7%)
CIE-LABlab(74.37, -10.79, 63.54)
CIE-LCHlch(74.37, 64.45, 99.64°)
OKLaboklab(77.53% -0.0362 0.1407)
OKLCHoklch(77.53% 0.145 104.4)
XYZxyz(41.3004, 47.2753, 10.6902)
Luminance0.4727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5BA38 #3843C5
analogous
#C57438 #C5BA38 #8AC538
triadic
#C5BA38 #38C5BA #BA38C5
tetradic
#C5BA38 #38C574 #3843C5 #C5388A
square
#C5BA38 #38C574 #3843C5 #C5388A
split-complementary
#C5BA38 #388AC5 #7438C5
monochromatic
#66601D #958D2A #C5BA38 #D4CB67 #E1DB96

Accessibility & contrast

On white

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

On black

10.45
#C5BA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5BA38
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5BA38#FFFFFF#000000##000000
##C5BA381.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB422
Deuteranopia (green-blind)
#CEBA41
Tritanopia (blue-blind)
#D4ADA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c5ba38;
/* rgb */ color: rgb(197, 186, 56);
/* oklch */ color: oklch(77.5% 0.145 104.4);
Tailwind
colors: {
  custom: {
    50: '#dace77',
    500: '#c5ba38',
    950: '#000000',
  },
}
SCSS
$custom: #c5ba38;
$custom-light: #dace77;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ba38",
  "rgb": {
    "r": 197,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 55.319,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.77531,
    "c": 0.14532,
    "h": 104.4
  },
  "luminance": 0.47274
}

Semantic roles & 50–950 ramp

primary
#C5BA38
secondary
#8C91CD
accent
#54DF49
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#151309
muted
#83827B

Preview Lab

Preview with #C5BA38

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

Preview Lab → · Contrast checker → · Palette generator →

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