#B031B2#B031B2

#B031B2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.215 H 327.3°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B031B2
RGBrgb(176, 49, 178)
HSLhsl(299, 57%, 45%)
HSVhsv(299, 72%, 70%)
CMYKcmyk(1.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(45.14, 65.30, -41.90)
CIE-LCHlch(45.14, 77.59, 327.31°)
OKLaboklab(55.54% 0.1812 -0.1162)
OKLCHoklch(55.54% 0.215 327.3)
XYZxyz(27.0383, 14.6430, 43.5131)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031B2 #33B231
analogous
#7031B2 #B031B2 #B23174
triadic
#B031B2 #B2B031 #31B2B0
tetradic
#B031B2 #B27031 #33B231 #3174B2
square
#B031B2 #B27031 #33B231 #3174B2
split-complementary
#B031B2 #74B231 #31B270
monochromatic
#511752 #812482 #B031B2 #CD51CF #DB81DC

Accessibility & contrast

On white

5.35
#B031B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B031B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031B2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031B2#FFFFFF#000000##FFFFFF
##B031B21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B6
Deuteranopia (green-blind)
#5270AF
Tritanopia (blue-blind)
#B5456F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b031b2;
/* rgb */ color: rgb(176, 49, 178);
/* oklch */ color: oklch(55.5% 0.215 327.3);
Tailwind
colors: {
  custom: {
    50: '#cb76c9',
    500: '#b031b2',
    950: '#000000',
  },
}
SCSS
$custom: #b031b2;
$custom-light: #cb76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b031b2",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 299.07,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55541,
    "c": 0.21529,
    "h": 327.3
  },
  "luminance": 0.14641
}

Semantic roles & 50–950 ramp

primary
#B031B2
secondary
#7BC579
accent
#E0484A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #B031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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