#B2B52F#B2B52F

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

Color values

HEX#B2B52F
RGBrgb(178, 181, 47)
HSLhsl(61, 59%, 45%)
HSVhsv(61, 74%, 71%)
CMYKcmyk(1.7%, 0%, 74%, 29%)
CIE-LABlab(71.36, -16.83, 63.28)
CIE-LCHlch(71.36, 65.48, 104.89°)
OKLaboklab(74.74% -0.0529 0.1393)
OKLCHoklch(74.74% 0.149 110.8)
XYZxyz(35.3983, 42.7189, 9.0697)
Luminance0.4272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B52F #322FB5
analogous
#B5752F #B2B52F #6FB52F
triadic
#B2B52F #2FB2B5 #B52FB2
tetradic
#B2B52F #2FB575 #322FB5 #B52F6F
square
#B2B52F #2FB575 #322FB5 #B52F6F
split-complementary
#B2B52F #2F6FB5 #752FB5
monochromatic
#525416 #828422 #B2B52F #CFD150 #DCDE80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B52F#FFFFFF#000000##000000
##B2B52F1.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)
#C3AD12
Deuteranopia (green-blind)
#C4B03A
Tritanopia (blue-blind)
#BFAA9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b2b52f;
/* rgb */ color: rgb(178, 181, 47);
/* oklch */ color: oklch(74.7% 0.149 110.8);
Tailwind
colors: {
  custom: {
    50: '#cdca72',
    500: '#b2b52f',
    950: '#000000',
  },
}
SCSS
$custom: #b2b52f;
$custom-light: #cdca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b52f",
  "rgb": {
    "r": 178,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 61.343,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74736,
    "c": 0.14899,
    "h": 110.8
  },
  "luminance": 0.42718
}

Semantic roles & 50–950 ramp

primary
#B2B52F
secondary
#7B79C7
accent
#46E249
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B52F

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

Preview Lab → · Contrast checker → · Palette generator →

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