#B2AB48#B2AB48

#B2AB48 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.121 H 105.2°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#B2AB48
RGBrgb(178, 171, 72)
HSLhsl(56, 42%, 49%)
HSVhsv(56, 60%, 70%)
CMYKcmyk(0%, 3.9%, 59.6%, 30.2%)
CIE-LABlab(68.79, -10.23, 50.65)
CIE-LCHlch(68.79, 51.67, 101.42°)
OKLaboklab(72.75% -0.0317 0.1166)
OKLCHoklch(72.75% 0.121 105.2)
XYZxyz(34.0938, 39.0598, 11.8730)
Luminance0.3906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB48 #484FB2
analogous
#B27648 #B2AB48 #84B248
triadic
#B2AB48 #48B2AB #AB48B2
tetradic
#B2AB48 #48B276 #484FB2 #B24884
square
#B2AB48 #48B276 #484FB2 #B24884
split-complementary
#B2AB48 #4884B2 #7648B2
monochromatic
#5B5725 #868136 #B2AB48 #C6C071 #D7D49D

Accessibility & contrast

On white

2.38
#B2AB48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#B2AB48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB48
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB48#FFFFFF#000000##000000
##B2AB481.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A53D
Deuteranopia (green-blind)
#BBAA4D
Tritanopia (blue-blind)
#BEA096
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b2ab48;
/* rgb */ color: rgb(178, 171, 72);
/* oklch */ color: oklch(72.7% 0.121 105.2);
Tailwind
colors: {
  custom: {
    50: '#ccc37f',
    500: '#b2ab48',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab48;
$custom-light: #ccc37f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab48",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 72
  },
  "hsl": {
    "h": 56.038,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72746,
    "c": 0.12082,
    "h": 105.2
  },
  "luminance": 0.39059
}

Semantic roles & 50–950 ramp

primary
#B2AB48
secondary
#9295C4
accent
#5ED256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #B2AB48

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

Preview Lab → · Contrast checker → · Palette generator →

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