#B7AB2C#B7AB2C

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

Color values

HEX#B7AB2C
RGBrgb(183, 171, 44)
HSLhsl(55, 61%, 45%)
HSVhsv(55, 76%, 72%)
CMYKcmyk(0%, 6.6%, 76%, 28.2%)
CIE-LABlab(69.02, -9.65, 62.26)
CIE-LCHlch(69.02, 63.00, 98.81°)
OKLaboklab(72.97% -0.0334 0.1363)
OKLCHoklch(72.97% 0.14 103.8)
XYZxyz(34.5475, 39.3764, 8.1630)
Luminance0.3937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB2C #2C38B7
analogous
#B7662C #B7AB2C #7EB72C
triadic
#B7AB2C #2CB7AB #AB2CB7
tetradic
#B7AB2C #2CB766 #2C38B7 #B72C7E
square
#B7AB2C #2CB766 #2C38B7 #B72C7E
split-complementary
#B7AB2C #2C7EB7 #662CB7
monochromatic
#544F14 #867D20 #B7AB2C #D4C84C #E0D77E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AB2C#FFFFFF#000000##000000
##B7AB2C1.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)
#BBA510
Deuteranopia (green-blind)
#BFAB36
Tritanopia (blue-blind)
#C59F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7ab2c;
/* rgb */ color: rgb(183, 171, 44);
/* oklch */ color: oklch(73.0% 0.140 103.8);
Tailwind
colors: {
  custom: {
    50: '#d0c36f',
    500: '#b7ab2c',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab2c;
$custom-light: #d0c36f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab2c",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 54.82,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72966,
    "c": 0.14037,
    "h": 103.8
  },
  "luminance": 0.39375
}

Semantic roles & 50–950 ramp

primary
#B7AB2C
secondary
#767DC8
accent
#51E443
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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