#B2B225#B2B225

#B2B225 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.151 H 109.6°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#B2B225
RGBrgb(178, 178, 37)
HSLhsl(60, 66%, 42%)
HSVhsv(60, 79%, 70%)
CMYKcmyk(0%, 0%, 79.2%, 30.2%)
CIE-LABlab(70.48, -15.71, 65.60)
CIE-LCHlch(70.48, 67.46, 103.46°)
OKLaboklab(74.02% -0.0507 0.1424)
OKLCHoklch(74.02% 0.151 109.6)
XYZxyz(34.6158, 41.4404, 7.9253)
Luminance0.4144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B225 #2525B2
analogous
#B26C25 #B2B225 #6CB225
triadic
#B2B225 #25B2B2 #B225B2
tetradic
#B2B225 #25B26C #2525B2 #B2256C
square
#B2B225 #25B26C #2525B2 #B2256C
split-complementary
#B2B225 #256CB2 #6C25B2
monochromatic
#4D4D10 #7F7F1A #B2B225 #D7D73D #E1E170

Accessibility & contrast

On white

2.26
#B2B225 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#B2B225 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B225
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B225#FFFFFF#000000##000000
##B2B2251.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C2AE32
Tritanopia (blue-blind)
#BFA698
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b225;
/* rgb */ color: rgb(178, 178, 37);
/* oklch */ color: oklch(74.0% 0.151 109.6);
Tailwind
colors: {
  custom: {
    50: '#cdc86d',
    500: '#b2b225',
    950: '#000000',
  },
}
SCSS
$custom: #b2b225;
$custom-light: #cdc86d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b225",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 37
  },
  "hsl": {
    "h": 60,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.74017,
    "c": 0.15112,
    "h": 109.6
  },
  "luminance": 0.41439
}

Semantic roles & 50–950 ramp

primary
#B2B225
secondary
#6B6BC8
accent
#3FE93F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #B2B225

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

Preview Lab → · Contrast checker → · Palette generator →

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