#B7AB2D#B7AB2D

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

Color values

HEX#B7AB2D
RGBrgb(183, 171, 45)
HSLhsl(55, 61%, 45%)
HSVhsv(55, 75%, 72%)
CMYKcmyk(0%, 6.6%, 75.4%, 28.2%)
CIE-LABlab(69.03, -9.61, 61.93)
CIE-LCHlch(69.03, 62.67, 98.82°)
OKLaboklab(72.97% -0.0332 0.1358)
OKLCHoklch(72.97% 0.14 103.7)
XYZxyz(34.5665, 39.3840, 8.2632)
Luminance0.3938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB2D #2D39B7
analogous
#B7662D #B7AB2D #7EB72D
triadic
#B7AB2D #2DB7AB #AB2DB7
tetradic
#B7AB2D #2DB766 #2D39B7 #B72D7E
square
#B7AB2D #2DB766 #2D39B7 #B72D7E
split-complementary
#B7AB2D #2D7EB7 #662DB7
monochromatic
#554F15 #867D21 #B7AB2D #D3C84E #DFD77F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AB2D#FFFFFF#000000##000000
##B7AB2D1.002.378.888.88
#FFFFFF2.371.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7ab2d;
/* rgb */ color: rgb(183, 171, 45);
/* oklch */ color: oklch(73.0% 0.140 103.7);
Tailwind
colors: {
  custom: {
    50: '#d0c370',
    500: '#b7ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab2d;
$custom-light: #d0c370;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab2d",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 54.783,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72972,
    "c": 0.13981,
    "h": 103.7
  },
  "luminance": 0.39383
}

Semantic roles & 50–950 ramp

primary
#B7AB2D
secondary
#787FC8
accent
#52E444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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