#B7AB2F#B7AB2F

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

Color values

HEX#B7AB2F
RGBrgb(183, 171, 47)
HSLhsl(55, 59%, 45%)
HSVhsv(55, 74%, 72%)
CMYKcmyk(0%, 6.6%, 74.3%, 28.2%)
CIE-LABlab(69.04, -9.52, 61.24)
CIE-LCHlch(69.04, 61.98, 98.83°)
OKLaboklab(72.99% -0.0327 0.1347)
OKLCHoklch(72.99% 0.139 103.7)
XYZxyz(34.6060, 39.3998, 8.4708)
Luminance0.3940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB2F #2F3BB7
analogous
#B7672F #B7AB2F #7FB72F
triadic
#B7AB2F #2FB7AB #AB2FB7
tetradic
#B7AB2F #2FB767 #2F3BB7 #B72F7F
square
#B7AB2F #2FB767 #2F3BB7 #B72F7F
split-complementary
#B7AB2F #2F7FB7 #672FB7
monochromatic
#565016 #867D22 #B7AB2F #D2C751 #DFD782

Accessibility & contrast

On white

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

On black

8.88
#B7AB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AB2F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AB2F#FFFFFF#000000##000000
##B7AB2F1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7ab2f;
/* rgb */ color: rgb(183, 171, 47);
/* oklch */ color: oklch(73.0% 0.139 103.7);
Tailwind
colors: {
  custom: {
    50: '#d0c371',
    500: '#b7ab2f',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab2f;
$custom-light: #d0c371;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab2f",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 54.706,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72985,
    "c": 0.13866,
    "h": 103.7
  },
  "luminance": 0.39398
}

Semantic roles & 50–950 ramp

primary
#B7AB2F
secondary
#7A81C8
accent
#53E245
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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