#B2AA42#B2AA42

#B2AA42 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.5% C 0.125 H 104.9°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#B2AA42
RGBrgb(178, 170, 66)
HSLhsl(56, 46%, 48%)
HSVhsv(56, 63%, 70%)
CMYKcmyk(0%, 4.5%, 62.9%, 30.2%)
CIE-LABlab(68.47, -10.13, 52.97)
CIE-LCHlch(68.47, 53.93, 100.82°)
OKLaboklab(72.47% -0.0321 0.1207)
OKLCHoklch(72.47% 0.125 104.9)
XYZxyz(33.7194, 38.6090, 10.8293)
Luminance0.3861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AA42 #424AB2
analogous
#B27242 #B2AA42 #82B242
triadic
#B2AA42 #42B2AA #AA42B2
tetradic
#B2AA42 #42B272 #424AB2 #B24282
square
#B2AA42 #42B272 #424AB2 #B24282
split-complementary
#B2AA42 #4282B2 #7242B2
monochromatic
#595521 #857F31 #B2AA42 #C8C16A #D8D396

Accessibility & contrast

On white

2.41
#B2AA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#B2AA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AA42
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AA42#FFFFFF#000000##000000
##B2AA421.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A436
Deuteranopia (green-blind)
#BBA948
Tritanopia (blue-blind)
#BF9F94
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2aa42;
/* rgb */ color: rgb(178, 170, 66);
/* oklch */ color: oklch(72.5% 0.125 104.9);
Tailwind
colors: {
  custom: {
    50: '#ccc37b',
    500: '#b2aa42',
    950: '#000000',
  },
}
SCSS
$custom: #b2aa42;
$custom-light: #ccc37b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2aa42",
  "rgb": {
    "r": 178,
    "g": 170,
    "b": 66
  },
  "hsl": {
    "h": 55.714,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.72468,
    "c": 0.12486,
    "h": 104.9
  },
  "luminance": 0.38608
}

Semantic roles & 50–950 ramp

primary
#B2AA42
secondary
#8C90C4
accent
#5CD652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #B2AA42

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

Preview Lab → · Contrast checker → · Palette generator →

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