#B2AA40#B2AA40

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

Color values

HEX#B2AA40
RGBrgb(178, 170, 64)
HSLhsl(56, 47%, 47%)
HSVhsv(56, 64%, 70%)
CMYKcmyk(0%, 4.5%, 64%, 30.2%)
CIE-LABlab(68.45, -10.26, 53.82)
CIE-LCHlch(68.45, 54.79, 100.79°)
OKLaboklab(72.45% -0.0327 0.1222)
OKLCHoklch(72.45% 0.126 105)
XYZxyz(33.6615, 38.5858, 10.5242)
Luminance0.3859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AA40 #4048B2
analogous
#B27140 #B2AA40 #81B240
triadic
#B2AA40 #40B2AA #AA40B2
tetradic
#B2AA40 #40B271 #4048B2 #B24081
square
#B2AA40 #40B271 #4048B2 #B24081
split-complementary
#B2AA40 #4081B2 #7140B2
monochromatic
#585420 #857F30 #B2AA40 #C8C167 #D8D494

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AA40#FFFFFF#000000##000000
##B2AA401.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)
#B8A433
Deuteranopia (green-blind)
#BBA946
Tritanopia (blue-blind)
#BF9F94
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2aa40;
/* rgb */ color: rgb(178, 170, 64);
/* oklch */ color: oklch(72.4% 0.126 105.0);
Tailwind
colors: {
  custom: {
    50: '#ccc37a',
    500: '#b2aa40',
    950: '#000000',
  },
}
SCSS
$custom: #b2aa40;
$custom-light: #ccc37a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2aa40",
  "rgb": {
    "r": 178,
    "g": 170,
    "b": 64
  },
  "hsl": {
    "h": 55.789,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72449,
    "c": 0.12647,
    "h": 105
  },
  "luminance": 0.38585
}

Semantic roles & 50–950 ramp

primary
#B2AA40
secondary
#8A8EC4
accent
#5AD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2AA40

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

Preview Lab → · Contrast checker → · Palette generator →

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