#B2B931#B2B931

#B2B931 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.152 H 112.5°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#B2B931
RGBrgb(178, 185, 49)
HSLhsl(63, 58%, 46%)
HSVhsv(63, 74%, 73%)
CMYKcmyk(3.8%, 0%, 73.5%, 27.5%)
CIE-LABlab(72.49, -18.75, 63.66)
CIE-LCHlch(72.49, 66.37, 106.42°)
OKLaboklab(75.64% -0.0581 0.1404)
OKLCHoklch(75.64% 0.152 112.5)
XYZxyz(36.2646, 44.3855, 9.5621)
Luminance0.4439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B931 #3831B9
analogous
#B97C31 #B2B931 #6EB931
triadic
#B2B931 #31B2B9 #B931B2
tetradic
#B2B931 #31B97C #3831B9 #B9316E
square
#B2B931 #31B97C #3831B9 #B9316E
split-complementary
#B2B931 #316EB9 #7C31B9
monochromatic
#555817 #838924 #B2B931 #CCD255 #DADF86

Accessibility & contrast

On white

2.13
#B2B931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#B2B931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B931
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B931#FFFFFF#000000##000000
##B2B9311.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B014
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#BEAE9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b2b931;
/* rgb */ color: rgb(178, 185, 49);
/* oklch */ color: oklch(75.6% 0.152 112.5);
Tailwind
colors: {
  custom: {
    50: '#cdcd73',
    500: '#b2b931',
    950: '#000000',
  },
}
SCSS
$custom: #b2b931;
$custom-light: #cdcd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b931",
  "rgb": {
    "r": 178,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 63.088,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75637,
    "c": 0.15198,
    "h": 112.5
  },
  "luminance": 0.44385
}

Semantic roles & 50–950 ramp

primary
#B2B931
secondary
#817DC8
accent
#46E14E
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2B931

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

Preview Lab → · Contrast checker → · Palette generator →

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