#B4BA2B#B4BA2B

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

Color values

HEX#B4BA2B
RGBrgb(180, 186, 43)
HSLhsl(63, 62%, 45%)
HSVhsv(63, 77%, 73%)
CMYKcmyk(3.2%, 0%, 76.9%, 27.1%)
CIE-LABlab(72.89, -18.66, 66.04)
CIE-LCHlch(72.89, 68.62, 105.78°)
OKLaboklab(75.99% -0.0585 0.1443)
OKLCHoklch(75.99% 0.156 112.1)
XYZxyz(36.8186, 44.9964, 9.0307)
Luminance0.4500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BA2B #312BBA
analogous
#BA782B #B4BA2B #6DBA2B
triadic
#B4BA2B #2BB4BA #BA2BB4
tetradic
#B4BA2B #2BBA78 #312BBA #BA2B6D
square
#B4BA2B #2BBA78 #312BBA #BA2B6D
split-complementary
#B4BA2B #2B6DBA #782BBA
monochromatic
#545714 #848820 #B4BA2B #D0D64C #DDE17E

Accessibility & contrast

On white

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

On black

10.00
#B4BA2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4BA2B
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4BA2B#FFFFFF#000000##000000
##B4BA2B1.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C9B438
Tritanopia (blue-blind)
#C1AE9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b4ba2b;
/* rgb */ color: rgb(180, 186, 43);
/* oklch */ color: oklch(76.0% 0.156 112.1);
Tailwind
colors: {
  custom: {
    50: '#cece71',
    500: '#b4ba2b',
    950: '#000000',
  },
}
SCSS
$custom: #b4ba2b;
$custom-light: #cece71;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ba2b",
  "rgb": {
    "r": 180,
    "g": 186,
    "b": 43
  },
  "hsl": {
    "h": 62.517,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.7599,
    "c": 0.15572,
    "h": 112.1
  },
  "luminance": 0.44996
}

Semantic roles & 50–950 ramp

primary
#B4BA2B
secondary
#7B77CA
accent
#42E649
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4BA2B

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

Preview Lab → · Contrast checker → · Palette generator →

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