#B2AB45#B2AB45

#B2AB45 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.123 H 105.4°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#B2AB45
RGBrgb(178, 171, 69)
HSLhsl(56, 44%, 48%)
HSVhsv(56, 61%, 70%)
CMYKcmyk(0%, 3.9%, 61.2%, 30.2%)
CIE-LABlab(68.77, -10.44, 51.97)
CIE-LCHlch(68.77, 53.01, 101.36°)
OKLaboklab(72.72% -0.0327 0.119)
OKLCHoklch(72.72% 0.123 105.4)
XYZxyz(33.9984, 39.0216, 11.3701)
Luminance0.3902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB45 #454CB2
analogous
#B27445 #B2AB45 #82B245
triadic
#B2AB45 #45B2AB #AB45B2
tetradic
#B2AB45 #45B274 #454CB2 #B24582
square
#B2AB45 #45B274 #454CB2 #B24582
split-complementary
#B2AB45 #4582B2 #7445B2
monochromatic
#5A5623 #868134 #B2AB45 #C7C16E #D8D49A

Accessibility & contrast

On white

2.39
#B2AB45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#B2AB45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB45
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB45#FFFFFF#000000##000000
##B2AB451.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A539
Deuteranopia (green-blind)
#BCAA4B
Tritanopia (blue-blind)
#BEA095
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b2ab45;
/* rgb */ color: rgb(178, 171, 69);
/* oklch */ color: oklch(72.7% 0.123 105.4);
Tailwind
colors: {
  custom: {
    50: '#ccc37d',
    500: '#b2ab45',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab45;
$custom-light: #ccc37d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab45",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 69
  },
  "hsl": {
    "h": 56.147,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72715,
    "c": 0.12338,
    "h": 105.4
  },
  "luminance": 0.3902
}

Semantic roles & 50–950 ramp

primary
#B2AB45
secondary
#8F92C4
accent
#5CD454
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #B2AB45

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

Preview Lab → · Contrast checker → · Palette generator →

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