#B2B42A#B2B42A

#B2B42A is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.151 H 110.4°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#B2B42A
RGBrgb(178, 180, 42)
HSLhsl(61, 62%, 44%)
HSVhsv(61, 77%, 71%)
CMYKcmyk(1.1%, 0%, 76.7%, 29.4%)
CIE-LABlab(71.06, -16.54, 64.62)
CIE-LCHlch(71.06, 66.71, 104.35°)
OKLaboklab(74.49% -0.0526 0.1412)
OKLCHoklch(74.49% 0.151 110.4)
XYZxyz(35.1005, 42.2757, 8.5011)
Luminance0.4228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B42A #2C2AB4
analogous
#B4712A #B2B42A #6DB42A
triadic
#B2B42A #2AB2B4 #B42AB2
tetradic
#B2B42A #2AB471 #2C2AB4 #B42A6D
square
#B2B42A #2AB471 #2C2AB4 #B42A6D
split-complementary
#B2B42A #2A6DB4 #712AB4
monochromatic
#505113 #81821E #B2B42A #D2D447 #DEE079

Accessibility & contrast

On white

2.22
#B2B42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#B2B42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B42A
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B42A#FFFFFF#000000##000000
##B2B42A1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC02
Deuteranopia (green-blind)
#C4B036
Tritanopia (blue-blind)
#BFA89A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b42a;
/* rgb */ color: rgb(178, 180, 42);
/* oklch */ color: oklch(74.5% 0.151 110.4);
Tailwind
colors: {
  custom: {
    50: '#cdca6f',
    500: '#b2b42a',
    950: '#000000',
  },
}
SCSS
$custom: #b2b42a;
$custom-light: #cdca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b42a",
  "rgb": {
    "r": 178,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 60.87,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74485,
    "c": 0.15067,
    "h": 110.4
  },
  "luminance": 0.42275
}

Semantic roles & 50–950 ramp

primary
#B2B42A
secondary
#7372C8
accent
#43E545
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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