#B4BA31#B4BA31

#B4BA31 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.0% C 0.152 H 112.1°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#B4BA31
RGBrgb(180, 186, 49)
HSLhsl(63, 58%, 46%)
HSVhsv(63, 74%, 73%)
CMYKcmyk(3.2%, 0%, 73.7%, 27.1%)
CIE-LABlab(72.92, -18.40, 64.13)
CIE-LCHlch(72.92, 66.72, 106.01°)
OKLaboklab(76.02% -0.0573 0.1413)
OKLCHoklch(76.02% 0.153 112.1)
XYZxyz(36.9369, 45.0438, 9.6537)
Luminance0.4504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BA31 #3731BA
analogous
#BA7B31 #B4BA31 #6FBA31
triadic
#B4BA31 #31B4BA #BA31B4
tetradic
#B4BA31 #31BA7B #3731BA #BA316F
square
#B4BA31 #31BA7B #3731BA #BA316F
split-complementary
#B4BA31 #316FBA #7B31BA
monochromatic
#565917 #858A24 #B4BA31 #CDD256 #DBDF86

Accessibility & contrast

On white

2.10
#B4BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.01
#B4BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4BA31
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4BA31#FFFFFF#000000##000000
##B4BA311.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#C9B53C
Tritanopia (blue-blind)
#C0AEA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b4ba31;
/* rgb */ color: rgb(180, 186, 49);
/* oklch */ color: oklch(76.0% 0.152 112.1);
Tailwind
colors: {
  custom: {
    50: '#cece73',
    500: '#b4ba31',
    950: '#000000',
  },
}
SCSS
$custom: #b4ba31;
$custom-light: #cece73;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ba31",
  "rgb": {
    "r": 180,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 62.628,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76024,
    "c": 0.1525,
    "h": 112.1
  },
  "luminance": 0.45043
}

Semantic roles & 50–950 ramp

primary
#B4BA31
secondary
#817EC9
accent
#46E24D
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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