#B31EA9#B31EA9

#B31EA9 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.227 H 331.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B31EA9
RGBrgb(179, 30, 169)
HSLhsl(304, 71%, 41%)
HSVhsv(304, 83%, 70%)
CMYKcmyk(0%, 83.2%, 5.6%, 29.8%)
CIE-LABlab(43.33, 69.74, -39.42)
CIE-LCHlch(43.33, 80.11, 330.53°)
OKLaboklab(54.18% 0.1994 -0.1088)
OKLCHoklch(54.18% 0.227 331.4)
XYZxyz(26.2161, 13.3791, 38.7301)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EA9 #1EB328
analogous
#721EB3 #B31EA9 #B31E5E
triadic
#B31EA9 #A9B31E #1EA9B3
tetradic
#B31EA9 #B3721E #1EB328 #1E5EB3
square
#B31EA9 #B3721E #1EB328 #1E5EB3
split-complementary
#B31EA9 #5EB31E #1EB372
monochromatic
#4A0C46 #7F1578 #B31EA9 #DD32D1 #E566DD

Accessibility & contrast

On white

5.71
#B31EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B31EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EA9
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EA9#FFFFFF#000000##FFFFFF
##B31EA91.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035AAC
Deuteranopia (green-blind)
#536DA6
Tritanopia (blue-blind)
#BB3566
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ea9;
/* rgb */ color: rgb(179, 30, 169);
/* oklch */ color: oklch(54.2% 0.227 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc3',
    500: '#b31ea9',
    950: '#000000',
  },
}
SCSS
$custom: #b31ea9;
$custom-light: #ce6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ea9",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 304.027,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54183,
    "c": 0.22718,
    "h": 331.4
  },
  "luminance": 0.13377
}

Semantic roles & 50–950 ramp

primary
#B31EA9
secondary
#62CB69
accent
#EE463A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B31EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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