#B2AB2C#B2AB2C

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

Color values

HEX#B2AB2C
RGBrgb(178, 171, 44)
HSLhsl(57, 60%, 44%)
HSVhsv(57, 75%, 70%)
CMYKcmyk(0%, 3.9%, 75.3%, 30.2%)
CIE-LABlab(68.59, -11.84, 61.70)
CIE-LCHlch(68.59, 62.82, 100.86°)
OKLaboklab(72.51% -0.0393 0.1353)
OKLCHoklch(72.51% 0.141 106.2)
XYZxyz(33.3790, 38.7739, 8.1082)
Luminance0.3877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB2C #2C33B2
analogous
#B2682C #B2AB2C #76B22C
triadic
#B2AB2C #2CB2AB #AB2CB2
tetradic
#B2AB2C #2CB268 #2C33B2 #B22C76
square
#B2AB2C #2CB268 #2C33B2 #B22C76
split-complementary
#B2AB2C #2C76B2 #682CB2
monochromatic
#504D14 #817C20 #B2AB2C #D2CB49 #DED97A

Accessibility & contrast

On white

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

On black

8.75
#B2AB2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB2C
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB2C#FFFFFF#000000##000000
##B2AB2C1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2ab2c;
/* rgb */ color: rgb(178, 171, 44);
/* oklch */ color: oklch(72.5% 0.141 106.2);
Tailwind
colors: {
  custom: {
    50: '#cdc36f',
    500: '#b2ab2c',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab2c;
$custom-light: #cdc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab2c",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 56.866,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72514,
    "c": 0.14092,
    "h": 106.2
  },
  "luminance": 0.38773
}

Semantic roles & 50–950 ramp

primary
#B2AB2C
secondary
#7378C6
accent
#4DE444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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