#B2B52A#B2B52A

#B2B52A is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.152 H 110.8°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#B2B52A
RGBrgb(178, 181, 42)
HSLhsl(61, 62%, 44%)
HSVhsv(61, 77%, 71%)
CMYKcmyk(1.7%, 0%, 76.8%, 29%)
CIE-LABlab(71.34, -17.04, 64.88)
CIE-LCHlch(71.34, 67.08, 104.72°)
OKLaboklab(74.71% -0.054 0.1417)
OKLCHoklch(74.71% 0.152 110.8)
XYZxyz(35.3032, 42.6809, 8.5686)
Luminance0.4268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B52A #2D2AB5
analogous
#B5722A #B2B52A #6CB52A
triadic
#B2B52A #2AB2B5 #B52AB2
tetradic
#B2B52A #2AB572 #2D2AB5 #B52A6C
square
#B2B52A #2AB572 #2D2AB5 #B52A6C
split-complementary
#B2B52A #2A6CB5 #722AB5
monochromatic
#505213 #81831E #B2B52A #D1D448 #DEE079

Accessibility & contrast

On white

2.20
#B2B52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#B2B52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B52A
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B52A#FFFFFF#000000##000000
##B2B52A1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD01
Deuteranopia (green-blind)
#C5B036
Tritanopia (blue-blind)
#BFA99B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b2b52a;
/* rgb */ color: rgb(178, 181, 42);
/* oklch */ color: oklch(74.7% 0.152 110.8);
Tailwind
colors: {
  custom: {
    50: '#cdca70',
    500: '#b2b52a',
    950: '#000000',
  },
}
SCSS
$custom: #b2b52a;
$custom-light: #cdca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b52a",
  "rgb": {
    "r": 178,
    "g": 181,
    "b": 42
  },
  "hsl": {
    "h": 61.295,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74707,
    "c": 0.15167,
    "h": 110.8
  },
  "luminance": 0.4268
}

Semantic roles & 50–950 ramp

primary
#B2B52A
secondary
#7573C8
accent
#42E546
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B52A

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

Preview Lab → · Contrast checker → · Palette generator →

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