#B2B82A#B2B82A

#B2B82A is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.4% C 0.155 H 112.1°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#B2B82A
RGBrgb(178, 184, 42)
HSLhsl(63, 63%, 44%)
HSVhsv(63, 77%, 72%)
CMYKcmyk(3.3%, 0%, 77.2%, 27.8%)
CIE-LABlab(72.17, -18.55, 65.63)
CIE-LCHlch(72.17, 68.20, 105.78°)
OKLaboklab(75.37% -0.0582 0.1434)
OKLCHoklch(75.37% 0.155 112.1)
XYZxyz(35.9197, 43.9140, 8.7741)
Luminance0.4391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B82A #302AB8
analogous
#B8772A #B2B82A #6BB82A
triadic
#B2B82A #2AB2B8 #B82AB2
tetradic
#B2B82A #2AB877 #302AB8 #B82A6B
square
#B2B82A #2AB877 #302AB8 #B82A6B
split-complementary
#B2B82A #2A6BB8 #772AB8
monochromatic
#525413 #82861F #B2B82A #D0D64A #DDE17B

Accessibility & contrast

On white

2.15
#B2B82A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#B2B82A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B82A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B82A#FFFFFF#000000##000000
##B2B82A1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#C7B337
Tritanopia (blue-blind)
#BFAC9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b2b82a;
/* rgb */ color: rgb(178, 184, 42);
/* oklch */ color: oklch(75.4% 0.155 112.1);
Tailwind
colors: {
  custom: {
    50: '#cdcd70',
    500: '#b2b82a',
    950: '#000000',
  },
}
SCSS
$custom: #b2b82a;
$custom-light: #cdcd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b82a",
  "rgb": {
    "r": 178,
    "g": 184,
    "b": 42
  },
  "hsl": {
    "h": 62.535,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75374,
    "c": 0.1547,
    "h": 112.1
  },
  "luminance": 0.43913
}

Semantic roles & 50–950 ramp

primary
#B2B82A
secondary
#7875C9
accent
#42E649
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B82A

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

Preview Lab → · Contrast checker → · Palette generator →

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