#B2B528#B2B528

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

Color values

HEX#B2B528
RGBrgb(178, 181, 40)
HSLhsl(61, 64%, 43%)
HSVhsv(61, 78%, 71%)
CMYKcmyk(1.7%, 0%, 77.9%, 29%)
CIE-LABlab(71.33, -17.12, 65.48)
CIE-LCHlch(71.33, 67.68, 104.65°)
OKLaboklab(74.7% -0.0543 0.1427)
OKLCHoklch(74.7% 0.153 110.9)
XYZxyz(35.2682, 42.6669, 8.3848)
Luminance0.4267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B528 #2B28B5
analogous
#B57228 #B2B528 #6BB528
triadic
#B2B528 #28B2B5 #B528B2
tetradic
#B2B528 #28B572 #2B28B5 #B5286B
square
#B2B528 #28B572 #2B28B5 #B5286B
split-complementary
#B2B528 #286BB5 #7228B5
monochromatic
#4F5112 #81831D #B2B528 #D3D644 #DFE177

Accessibility & contrast

On white

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

On black

9.53
#B2B528 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B528
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B528#FFFFFF#000000##000000
##B2B5281.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2b528;
/* rgb */ color: rgb(178, 181, 40);
/* oklch */ color: oklch(74.7% 0.153 110.9);
Tailwind
colors: {
  custom: {
    50: '#cdca6f',
    500: '#b2b528',
    950: '#000000',
  },
}
SCSS
$custom: #b2b528;
$custom-light: #cdca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b528",
  "rgb": {
    "r": 178,
    "g": 181,
    "b": 40
  },
  "hsl": {
    "h": 61.277,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.74696,
    "c": 0.15265,
    "h": 110.9
  },
  "luminance": 0.42666
}

Semantic roles & 50–950 ramp

primary
#B2B528
secondary
#7270C8
accent
#41E745
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B528

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

Preview Lab → · Contrast checker → · Palette generator →

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