#B7AB2B#B7AB2B

#B7AB2B 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#B7AB2B
RGBrgb(183, 171, 43)
HSLhsl(55, 62%, 44%)
HSVhsv(55, 77%, 72%)
CMYKcmyk(0%, 6.6%, 76.5%, 28.2%)
CIE-LABlab(69.02, -9.69, 62.59)
CIE-LCHlch(69.02, 63.33, 98.80°)
OKLaboklab(72.96% -0.0336 0.1369)
OKLCHoklch(72.96% 0.141 103.8)
XYZxyz(34.5289, 39.3690, 8.0652)
Luminance0.3937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB2B #2B37B7
analogous
#B7652B #B7AB2B #7DB72B
triadic
#B7AB2B #2BB7AB #AB2BB7
tetradic
#B7AB2B #2BB765 #2B37B7 #B72B7D
square
#B7AB2B #2BB765 #2B37B7 #B72B7D
split-complementary
#B7AB2B #2B7DB7 #652BB7
monochromatic
#544E14 #857D1F #B7AB2B #D5C94B #E0D87C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AB2B#FFFFFF#000000##000000
##B7AB2B1.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)
#BBA50D
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#C59F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7ab2b;
/* rgb */ color: rgb(183, 171, 43);
/* oklch */ color: oklch(73.0% 0.141 103.8);
Tailwind
colors: {
  custom: {
    50: '#d0c36f',
    500: '#b7ab2b',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab2b;
$custom-light: #d0c36f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab2b",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 43
  },
  "hsl": {
    "h": 54.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.7296,
    "c": 0.14091,
    "h": 103.8
  },
  "luminance": 0.39368
}

Semantic roles & 50–950 ramp

primary
#B7AB2B
secondary
#757CC9
accent
#51E543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7AB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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