#B2B72A#B2B72A

#B2B72A is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.2% C 0.154 H 111.7°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#B2B72A
RGBrgb(178, 183, 42)
HSLhsl(62, 63%, 44%)
HSVhsv(62, 77%, 72%)
CMYKcmyk(2.7%, 0%, 77%, 28.2%)
CIE-LABlab(71.89, -18.05, 65.38)
CIE-LCHlch(71.89, 67.83, 105.43°)
OKLaboklab(75.15% -0.0568 0.1428)
OKLCHoklch(75.15% 0.154 111.7)
XYZxyz(35.7127, 43.5000, 8.7051)
Luminance0.4350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B72A #2F2AB7
analogous
#B7762A #B2B72A #6CB72A
triadic
#B2B72A #2AB2B7 #B72AB2
tetradic
#B2B72A #2AB776 #2F2AB7 #B72A6C
square
#B2B72A #2AB776 #2F2AB7 #B72A6C
split-complementary
#B2B72A #2A6CB7 #762AB7
monochromatic
#515313 #82851F #B2B72A #D0D549 #DDE17B

Accessibility & contrast

On white

2.16
#B2B72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#B2B72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B72A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B72A#FFFFFF#000000##000000
##B2B72A1.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C6B236
Tritanopia (blue-blind)
#BFAB9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b2b72a;
/* rgb */ color: rgb(178, 183, 42);
/* oklch */ color: oklch(75.2% 0.154 111.7);
Tailwind
colors: {
  custom: {
    50: '#cdcc70',
    500: '#b2b72a',
    950: '#000000',
  },
}
SCSS
$custom: #b2b72a;
$custom-light: #cdcc70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b72a",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 42
  },
  "hsl": {
    "h": 62.128,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75151,
    "c": 0.15368,
    "h": 111.7
  },
  "luminance": 0.43499
}

Semantic roles & 50–950 ramp

primary
#B2B72A
secondary
#7774C9
accent
#42E648
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B72A

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

Preview Lab → · Contrast checker → · Palette generator →

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