#B7AB3A#B7AB3A

#B7AB3A is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.1% C 0.132 H 103.2°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#B7AB3A
RGBrgb(183, 171, 58)
HSLhsl(54, 52%, 47%)
HSVhsv(54, 68%, 72%)
CMYKcmyk(0%, 6.6%, 68.3%, 28.2%)
CIE-LABlab(69.11, -8.97, 57.14)
CIE-LCHlch(69.11, 57.84, 98.92°)
OKLaboklab(73.07% -0.03 0.1281)
OKLCHoklch(73.07% 0.132 103.2)
XYZxyz(34.8565, 39.5000, 9.7904)
Luminance0.3950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB3A #3A46B7
analogous
#B76D3A #B7AB3A #85B73A
triadic
#B7AB3A #3AB7AB #AB3AB7
tetradic
#B7AB3A #3AB76D #3A46B7 #B73A85
square
#B7AB3A #3AB76D #3A46B7 #B73A85
split-complementary
#B7AB3A #3A85B7 #6D3AB7
monochromatic
#5A541D #89802B #B7AB3A #CDC361 #DCD490

Accessibility & contrast

On white

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

On black

8.90
#B7AB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AB3A
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AB3A#FFFFFF#000000##000000
##B7AB3A1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7ab3a;
/* rgb */ color: rgb(183, 171, 58);
/* oklch */ color: oklch(73.1% 0.132 103.2);
Tailwind
colors: {
  custom: {
    50: '#d0c377',
    500: '#b7ab3a',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab3a;
$custom-light: #d0c377;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab3a",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 54.24,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73065,
    "c": 0.13155,
    "h": 103.2
  },
  "luminance": 0.39499
}

Semantic roles & 50–950 ramp

primary
#B7AB3A
secondary
#868CC7
accent
#5ADB4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7AB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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