#B2AB2F#B2AB2F

#B2AB2F is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.139 H 106.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B2AB2F
RGBrgb(178, 171, 47)
HSLhsl(57, 58%, 44%)
HSVhsv(57, 74%, 70%)
CMYKcmyk(0%, 3.9%, 73.6%, 30.2%)
CIE-LABlab(68.60, -11.71, 60.67)
CIE-LCHlch(68.60, 61.79, 100.92°)
OKLaboklab(72.53% -0.0386 0.1337)
OKLCHoklch(72.53% 0.139 106.1)
XYZxyz(33.4375, 38.7973, 8.4161)
Luminance0.3880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB2F #2F36B2
analogous
#B26A2F #B2AB2F #78B22F
triadic
#B2AB2F #2FB2AB #AB2FB2
tetradic
#B2AB2F #2FB26A #2F36B2 #B22F78
square
#B2AB2F #2FB26A #2F36B2 #B22F78
split-complementary
#B2AB2F #2F78B2 #6A2FB2
monochromatic
#514E15 #827C22 #B2AB2F #D0C94E #DDD87E

Accessibility & contrast

On white

2.40
#B2AB2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#B2AB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB2F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB2F#FFFFFF#000000##000000
##B2AB2F1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA517
Deuteranopia (green-blind)
#BDAA38
Tritanopia (blue-blind)
#BF9F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2ab2f;
/* rgb */ color: rgb(178, 171, 47);
/* oklch */ color: oklch(72.5% 0.139 106.1);
Tailwind
colors: {
  custom: {
    50: '#cdc371',
    500: '#b2ab2f',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab2f;
$custom-light: #cdc371;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab2f",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 56.794,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72533,
    "c": 0.13919,
    "h": 106.1
  },
  "luminance": 0.38796
}

Semantic roles & 50–950 ramp

primary
#B2AB2F
secondary
#777BC6
accent
#4FE146
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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