#B9BA40#B9BA40

#B9BA40 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 76.6% C 0.142 H 109.8°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#B9BA40
RGBrgb(185, 186, 64)
HSLhsl(60, 49%, 49%)
HSVhsv(60, 66%, 73%)
CMYKcmyk(0.5%, 0%, 65.6%, 27.1%)
CIE-LABlab(73.42, -15.49, 59.19)
CIE-LCHlch(73.42, 61.18, 104.67°)
OKLaboklab(76.55% -0.0479 0.1333)
OKLCHoklch(76.55% 0.142 109.8)
XYZxyz(38.4931, 45.8033, 11.6627)
Luminance0.4580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9BA40 #4140BA
analogous
#BA7E40 #B9BA40 #7CBA40
triadic
#B9BA40 #40B9BA #BA40B9
tetradic
#B9BA40 #40BA7E #4140BA #BA407C
square
#B9BA40 #40BA7E #4140BA #BA407C
split-complementary
#B9BA40 #407CBA #7E40BA
monochromatic
#5E5F21 #8C8C30 #B9BA40 #CBCC6B #DBDC99

Accessibility & contrast

On white

2.07
#B9BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#B9BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9BA40
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9BA40#FFFFFF#000000##000000
##B9BA401.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B22F
Deuteranopia (green-blind)
#CAB648
Tritanopia (blue-blind)
#C6AFA1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #b9ba40;
/* rgb */ color: rgb(185, 186, 64);
/* oklch */ color: oklch(76.6% 0.142 109.8);
Tailwind
colors: {
  custom: {
    50: '#d1ce7b',
    500: '#b9ba40',
    950: '#000000',
  },
}
SCSS
$custom: #b9ba40;
$custom-light: #d1ce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ba40",
  "rgb": {
    "r": 185,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 60.492,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76551,
    "c": 0.14166,
    "h": 109.8
  },
  "luminance": 0.45802
}

Semantic roles & 50–950 ramp

primary
#B9BA40
secondary
#8F8EC8
accent
#4FD851
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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