#B2B031#B2B031

#B2B031 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.6% C 0.143 H 108.5°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#B2B031
RGBrgb(178, 176, 49)
HSLhsl(59, 57%, 45%)
HSVhsv(59, 72%, 70%)
CMYKcmyk(0%, 1.1%, 72.5%, 30.2%)
CIE-LABlab(69.99, -14.19, 61.29)
CIE-LCHlch(69.99, 62.91, 103.04°)
OKLaboklab(73.64% -0.0454 0.1354)
OKLCHoklch(73.64% 0.143 108.5)
XYZxyz(34.4411, 40.7385, 8.9542)
Luminance0.4074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B031 #3133B2
analogous
#B27031 #B2B031 #74B231
triadic
#B2B031 #31B2B0 #B031B2
tetradic
#B2B031 #31B270 #3133B2 #B23174
square
#B2B031 #31B270 #3133B2 #B23174
split-complementary
#B2B031 #3174B2 #7031B2
monochromatic
#525117 #828124 #B2B031 #CFCD51 #DCDB81

Accessibility & contrast

On white

2.30
#B2B031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#B2B031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B031
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B031#FFFFFF#000000##000000
##B2B0311.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA919
Deuteranopia (green-blind)
#C0AD3B
Tritanopia (blue-blind)
#BFA497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2b031;
/* rgb */ color: rgb(178, 176, 49);
/* oklch */ color: oklch(73.6% 0.143 108.5);
Tailwind
colors: {
  custom: {
    50: '#cdc772',
    500: '#b2b031',
    950: '#000000',
  },
}
SCSS
$custom: #b2b031;
$custom-light: #cdc772;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b031",
  "rgb": {
    "r": 178,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 59.07,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73644,
    "c": 0.14281,
    "h": 108.5
  },
  "luminance": 0.40737
}

Semantic roles & 50–950 ramp

primary
#B2B031
secondary
#797BC5
accent
#4AE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B031

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

Preview Lab → · Contrast checker → · Palette generator →

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