#B2B252#B2B252

#B2B252 is a light, moderate yellow. Relative luminance 0.419; OKLCH L 74.4% C 0.119 H 109.0°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#B2B252
RGBrgb(178, 178, 82)
HSLhsl(60, 38%, 51%)
HSVhsv(60, 54%, 70%)
CMYKcmyk(0%, 0%, 53.9%, 30.2%)
CIE-LABlab(70.81, -13.09, 48.29)
CIE-LCHlch(70.81, 50.03, 105.16°)
OKLaboklab(74.39% -0.0388 0.1127)
OKLCHoklch(74.39% 0.119 109)
XYZxyz(35.8044, 41.9159, 14.1855)
Luminance0.4192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B252 #5252B2
analogous
#B28252 #B2B252 #82B252
triadic
#B2B252 #52B2B2 #B252B2
tetradic
#B2B252 #52B282 #5252B2 #B25282
square
#B2B252 #52B282 #5252B2 #B25282
split-complementary
#B2B252 #5282B2 #8252B2
monochromatic
#5F5F2A #8A8A3D #B2B252 #C5C57C #D8D8A7

Accessibility & contrast

On white

2.24
#B2B252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#B2B252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B252
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B252#FFFFFF#000000##000000
##B2B2521.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB48
Deuteranopia (green-blind)
#C0AF57
Tritanopia (blue-blind)
#BDA89D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b252;
/* rgb */ color: rgb(178, 178, 82);
/* oklch */ color: oklch(74.4% 0.119 109.0);
Tailwind
colors: {
  custom: {
    50: '#cbc886',
    500: '#b2b252',
    950: '#000000',
  },
}
SCSS
$custom: #b2b252;
$custom-light: #cbc886;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b252",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.74385,
    "c": 0.1192,
    "h": 109
  },
  "luminance": 0.41915
}

Semantic roles & 50–950 ramp

primary
#B2B252
secondary
#9B9BC5
accent
#59CE59
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130B
muted
#82827C

Preview Lab

Preview with #B2B252

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

Preview Lab → · Contrast checker → · Palette generator →

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