#B7AB2A#B7AB2A

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

Color values

HEX#B7AB2A
RGBrgb(183, 171, 42)
HSLhsl(55, 63%, 44%)
HSVhsv(55, 77%, 72%)
CMYKcmyk(0%, 6.6%, 77%, 28.2%)
CIE-LABlab(69.01, -9.73, 62.91)
CIE-LCHlch(69.01, 63.66, 98.79°)
OKLaboklab(72.95% -0.0338 0.1373)
OKLCHoklch(72.95% 0.141 103.8)
XYZxyz(34.5108, 39.3617, 7.9698)
Luminance0.3936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB2A #2A36B7
analogous
#B7652A #B7AB2A #7DB72A
triadic
#B7AB2A #2AB7AB #AB2AB7
tetradic
#B7AB2A #2AB765 #2A36B7 #B72A7D
square
#B7AB2A #2AB765 #2A36B7 #B72A7D
split-complementary
#B7AB2A #2A7DB7 #652AB7
monochromatic
#534E13 #857C1F #B7AB2A #D5C949 #E1D87B

Accessibility & contrast

On white

2.37
#B7AB2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#B7AB2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AB2A
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AB2A#FFFFFF#000000##000000
##B7AB2A1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA50A
Deuteranopia (green-blind)
#BFAB34
Tritanopia (blue-blind)
#C59F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7ab2a;
/* rgb */ color: rgb(183, 171, 42);
/* oklch */ color: oklch(73.0% 0.141 103.8);
Tailwind
colors: {
  custom: {
    50: '#d1c36e',
    500: '#b7ab2a',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab2a;
$custom-light: #d1c36e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab2a",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 54.894,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72954,
    "c": 0.14144,
    "h": 103.8
  },
  "luminance": 0.3936
}

Semantic roles & 50–950 ramp

primary
#B7AB2A
secondary
#747BC9
accent
#50E642
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7AB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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