#C4BA31#C4BA31

#C4BA31 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.4% C 0.150 H 105.1°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#C4BA31
RGBrgb(196, 186, 49)
HSLhsl(56, 60%, 48%)
HSVhsv(56, 75%, 77%)
CMYKcmyk(0%, 5.1%, 75%, 23.1%)
CIE-LABlab(74.24, -11.54, 65.84)
CIE-LCHlch(74.24, 66.84, 99.94°)
OKLaboklab(77.4% -0.0389 0.1444)
OKLCHoklch(77.4% 0.15 105.1)
XYZxyz(40.8800, 47.0769, 9.8385)
Luminance0.4708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4BA31 #313BC4
analogous
#C47031 #C4BA31 #85C431
triadic
#C4BA31 #31C4BA #BA31C4
tetradic
#C4BA31 #31C470 #313BC4 #C43185
square
#C4BA31 #31C470 #313BC4 #C43185
split-complementary
#C4BA31 #3185C4 #7031C4
monochromatic
#625D19 #938C25 #C4BA31 #D6CE5C #E2DD8D

Accessibility & contrast

On white

2.02
#C4BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.42
#C4BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4BA31
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4BA31#FFFFFF#000000##000000
##C4BA311.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c4ba31;
/* rgb */ color: rgb(196, 186, 49);
/* oklch */ color: oklch(77.4% 0.150 105.1);
Tailwind
colors: {
  custom: {
    50: '#dace74',
    500: '#c4ba31',
    950: '#000000',
  },
}
SCSS
$custom: #c4ba31;
$custom-light: #dace74;
$custom-dark: #000000;
JSON
{
  "hex": "#c4ba31",
  "rgb": {
    "r": 196,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 55.918,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.77397,
    "c": 0.14952,
    "h": 105.1
  },
  "luminance": 0.47075
}

Semantic roles & 50–950 ramp

primary
#C4BA31
secondary
#8489CD
accent
#4FE345
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C4BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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