#B4AB34#B4AB34

#B4AB34 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.136 H 105.0°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#B4AB34
RGBrgb(180, 171, 52)
HSLhsl(56, 55%, 45%)
HSVhsv(56, 71%, 71%)
CMYKcmyk(0%, 5%, 71.1%, 29.4%)
CIE-LABlab(68.81, -10.59, 59.10)
CIE-LCHlch(68.81, 60.04, 100.16°)
OKLaboklab(72.75% -0.0351 0.1312)
OKLCHoklch(72.75% 0.136 105)
XYZxyz(34.0065, 39.0783, 8.9997)
Luminance0.3908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB34 #343DB4
analogous
#B46B34 #B4AB34 #7DB434
triadic
#B4AB34 #34B4AB #AB34B4
tetradic
#B4AB34 #34B46B #343DB4 #B4347D
square
#B4AB34 #34B46B #343DB4 #B4347D
split-complementary
#B4AB34 #347DB4 #6B34B4
monochromatic
#555119 #857E26 #B4AB34 #CEC657 #DCD686

Accessibility & contrast

On white

2.38
#B4AB34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#B4AB34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AB34
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AB34#FFFFFF#000000##000000
##B4AB341.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA520
Deuteranopia (green-blind)
#BDAA3C
Tritanopia (blue-blind)
#C19F94
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab34;
/* rgb */ color: rgb(180, 171, 52);
/* oklch */ color: oklch(72.7% 0.136 105.0);
Tailwind
colors: {
  custom: {
    50: '#cec373',
    500: '#b4ab34',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab34;
$custom-light: #cec373;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab34",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 52
  },
  "hsl": {
    "h": 55.781,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72747,
    "c": 0.13585,
    "h": 105
  },
  "luminance": 0.39077
}

Semantic roles & 50–950 ramp

primary
#B4AB34
secondary
#7E83C6
accent
#54DF49
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4AB34

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

Preview Lab → · Contrast checker → · Palette generator →

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