#B4BA42#B4BA42

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

Color values

HEX#B4BA42
RGBrgb(180, 186, 66)
HSLhsl(63, 48%, 49%)
HSVhsv(63, 65%, 73%)
CMYKcmyk(3.2%, 0%, 64.5%, 27.1%)
CIE-LABlab(73.03, -17.48, 57.85)
CIE-LCHlch(73.03, 60.43, 106.82°)
OKLaboklab(76.15% -0.053 0.1309)
OKLCHoklch(76.15% 0.141 112.1)
XYZxyz(37.3657, 45.2153, 11.9123)
Luminance0.4521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BA42 #4842BA
analogous
#BA8442 #B4BA42 #78BA42
triadic
#B4BA42 #42B4BA #BA42B4
tetradic
#B4BA42 #42BA84 #4842BA #BA4278
square
#B4BA42 #42BA84 #4842BA #BA4278
split-complementary
#B4BA42 #4278BA #8442BA
monochromatic
#5D6022 #888D32 #B4BA42 #C7CB6E #D8DB9B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4BA42#FFFFFF#000000##000000
##B4BA421.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)
#C8B232
Deuteranopia (green-blind)
#C8B54A
Tritanopia (blue-blind)
#C0AFA1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b4ba42;
/* rgb */ color: rgb(180, 186, 66);
/* oklch */ color: oklch(76.2% 0.141 112.1);
Tailwind
colors: {
  custom: {
    50: '#cdce7c',
    500: '#b4ba42',
    950: '#000000',
  },
}
SCSS
$custom: #b4ba42;
$custom-light: #cdce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ba42",
  "rgb": {
    "r": 180,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 63,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.76151,
    "c": 0.14125,
    "h": 112.1
  },
  "luminance": 0.45214
}

Semantic roles & 50–950 ramp

primary
#B4BA42
secondary
#9390C8
accent
#51D757
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4BA42

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

Preview Lab → · Contrast checker → · Palette generator →

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