#B2AB2D#B2AB2D

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

Color values

HEX#B2AB2D
RGBrgb(178, 171, 45)
HSLhsl(57, 60%, 44%)
HSVhsv(57, 75%, 70%)
CMYKcmyk(0%, 3.9%, 74.7%, 30.2%)
CIE-LABlab(68.59, -11.79, 61.36)
CIE-LCHlch(68.59, 62.48, 100.88°)
OKLaboklab(72.52% -0.039 0.1348)
OKLCHoklch(72.52% 0.14 106.2)
XYZxyz(33.3980, 38.7815, 8.2084)
Luminance0.3878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB2D #2D34B2
analogous
#B2682D #B2AB2D #76B22D
triadic
#B2AB2D #2DB2AB #AB2DB2
tetradic
#B2AB2D #2DB268 #2D34B2 #B22D76
square
#B2AB2D #2DB268 #2D34B2 #B22D76
split-complementary
#B2AB2D #2D76B2 #682DB2
monochromatic
#504D14 #817C21 #B2AB2D #D1CA4B #DED97C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AB2D#FFFFFF#000000##000000
##B2AB2D1.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)
#BAA513
Deuteranopia (green-blind)
#BDAA37
Tritanopia (blue-blind)
#BF9F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2ab2d;
/* rgb */ color: rgb(178, 171, 45);
/* oklch */ color: oklch(72.5% 0.140 106.2);
Tailwind
colors: {
  custom: {
    50: '#cdc370',
    500: '#b2ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab2d;
$custom-light: #cdc370;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab2d",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 56.842,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.7252,
    "c": 0.14036,
    "h": 106.2
  },
  "luminance": 0.3878
}

Semantic roles & 50–950 ramp

primary
#B2AB2D
secondary
#7579C6
accent
#4DE345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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