#B4BA40#B4BA40

#B4BA40 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.1% C 0.143 H 112.1°. Best body text is #000000 at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#B4BA40
RGBrgb(180, 186, 64)
HSLhsl(63, 49%, 49%)
HSVhsv(63, 66%, 73%)
CMYKcmyk(3.2%, 0%, 65.6%, 27.1%)
CIE-LABlab(73.02, -17.61, 58.65)
CIE-LCHlch(73.02, 61.23, 106.71°)
OKLaboklab(76.13% -0.0536 0.1323)
OKLCHoklch(76.13% 0.143 112.1)
XYZxyz(37.3078, 45.1921, 11.6072)
Luminance0.4519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BA40 #4640BA
analogous
#BA8340 #B4BA40 #77BA40
triadic
#B4BA40 #40B4BA #BA40B4
tetradic
#B4BA40 #40BA83 #4640BA #BA4077
square
#B4BA40 #40BA83 #4640BA #BA4077
split-complementary
#B4BA40 #4077BA #8340BA
monochromatic
#5C5F21 #888C30 #B4BA40 #C7CC6B #D8DC99

Accessibility & contrast

On white

2.09
#B4BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.04
#B4BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4BA40
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4BA40#FFFFFF#000000##000000
##B4BA401.002.0910.0410.04
#FFFFFF2.091.0021.0021.00
#00000010.0421.001.001.00
##00000010.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B22F
Deuteranopia (green-blind)
#C8B548
Tritanopia (blue-blind)
#C0AFA1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b4ba40;
/* rgb */ color: rgb(180, 186, 64);
/* oklch */ color: oklch(76.1% 0.143 112.1);
Tailwind
colors: {
  custom: {
    50: '#cdce7b',
    500: '#b4ba40',
    950: '#000000',
  },
}
SCSS
$custom: #b4ba40;
$custom-light: #cdce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ba40",
  "rgb": {
    "r": 180,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 62.951,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76134,
    "c": 0.14274,
    "h": 112.1
  },
  "luminance": 0.45191
}

Semantic roles & 50–950 ramp

primary
#B4BA40
secondary
#918EC8
accent
#4FD856
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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