#B2B731#B2B731

#B2B731 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.2% C 0.150 H 111.7°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#B2B731
RGBrgb(178, 183, 49)
HSLhsl(62, 58%, 45%)
HSVhsv(62, 73%, 72%)
CMYKcmyk(2.7%, 0%, 73.2%, 28.2%)
CIE-LABlab(71.93, -17.75, 63.14)
CIE-LCHlch(71.93, 65.58, 105.70°)
OKLaboklab(75.19% -0.0553 0.1393)
OKLCHoklch(75.19% 0.15 111.7)
XYZxyz(35.8491, 43.5546, 9.4236)
Luminance0.4355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B731 #3631B7
analogous
#B77931 #B2B731 #6FB731
triadic
#B2B731 #31B2B7 #B731B2
tetradic
#B2B731 #31B779 #3631B7 #B7316F
square
#B2B731 #31B779 #3631B7 #B7316F
split-complementary
#B2B731 #316FB7 #7931B7
monochromatic
#545617 #838724 #B2B731 #CDD154 #DBDE84

Accessibility & contrast

On white

2.16
#B2B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#B2B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B731
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B731#FFFFFF#000000##000000
##B2B7311.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF16
Deuteranopia (green-blind)
#C6B23C
Tritanopia (blue-blind)
#BEAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b2b731;
/* rgb */ color: rgb(178, 183, 49);
/* oklch */ color: oklch(75.2% 0.150 111.7);
Tailwind
colors: {
  custom: {
    50: '#cdcc73',
    500: '#b2b731',
    950: '#000000',
  },
}
SCSS
$custom: #b2b731;
$custom-light: #cdcc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b731",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 62.239,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75192,
    "c": 0.1499,
    "h": 111.7
  },
  "luminance": 0.43554
}

Semantic roles & 50–950 ramp

primary
#B2B731
secondary
#7F7CC8
accent
#47E14D
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2B731

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

Preview Lab → · Contrast checker → · Palette generator →

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