#B7AB34#B7AB34

#B7AB34 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 73.0% C 0.136 H 103.5°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#B7AB34
RGBrgb(183, 171, 52)
HSLhsl(55, 56%, 46%)
HSVhsv(55, 72%, 72%)
CMYKcmyk(0%, 6.6%, 71.6%, 28.2%)
CIE-LABlab(69.07, -9.28, 59.45)
CIE-LCHlch(69.07, 60.17, 98.88°)
OKLaboklab(73.02% -0.0316 0.1319)
OKLCHoklch(73.02% 0.136 103.5)
XYZxyz(34.7127, 39.4425, 9.0328)
Luminance0.3944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB34 #3440B7
analogous
#B76934 #B7AB34 #81B734
triadic
#B7AB34 #34B7AB #AB34B7
tetradic
#B7AB34 #34B769 #3440B7 #B73481
square
#B7AB34 #34B769 #3440B7 #B73481
split-complementary
#B7AB34 #3481B7 #6934B7
monochromatic
#585219 #877E26 #B7AB34 #D0C559 #DDD588

Accessibility & contrast

On white

2.36
#B7AB34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#B7AB34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AB34
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AB34#FFFFFF#000000##000000
##B7AB341.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA520
Deuteranopia (green-blind)
#BEAB3C
Tritanopia (blue-blind)
#C59F94
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b7ab34;
/* rgb */ color: rgb(183, 171, 52);
/* oklch */ color: oklch(73.0% 0.136 103.5);
Tailwind
colors: {
  custom: {
    50: '#d0c373',
    500: '#b7ab34',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab34;
$custom-light: #d0c373;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab34",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 52
  },
  "hsl": {
    "h": 54.504,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73019,
    "c": 0.1356,
    "h": 103.5
  },
  "luminance": 0.39441
}

Semantic roles & 50–950 ramp

primary
#B7AB34
secondary
#8086C7
accent
#57DF49
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7AB34

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

Preview Lab → · Contrast checker → · Palette generator →

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