#B31EA6#B31EA6

#B31EA6 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.225 H 332.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B31EA6
RGBrgb(179, 30, 166)
HSLhsl(305, 71%, 41%)
HSVhsv(305, 83%, 70%)
CMYKcmyk(0%, 83.2%, 7.3%, 29.8%)
CIE-LABlab(43.16, 69.30, -37.89)
CIE-LCHlch(43.16, 78.98, 331.33°)
OKLaboklab(54.01% 0.1994 -0.1044)
OKLCHoklch(54.01% 0.225 332.4)
XYZxyz(25.9377, 13.2677, 37.2639)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EA6 #1EB32B
analogous
#751EB3 #B31EA6 #B31E5B
triadic
#B31EA6 #A6B31E #1EA6B3
tetradic
#B31EA6 #B3751E #1EB32B #1E5BB3
square
#B31EA6 #B3751E #1EB32B #1E5BB3
split-complementary
#B31EA6 #5BB31E #1EB375
monochromatic
#4A0C45 #7F1575 #B31EA6 #DD32CE #E566DA

Accessibility & contrast

On white

5.75
#B31EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B31EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EA6
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EA6#FFFFFF#000000##FFFFFF
##B31EA61.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59A9
Deuteranopia (green-blind)
#556DA3
Tritanopia (blue-blind)
#BB3364
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ea6;
/* rgb */ color: rgb(179, 30, 166);
/* oklch */ color: oklch(54.0% 0.225 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31ea6',
    950: '#000000',
  },
}
SCSS
$custom: #b31ea6;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ea6",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 305.235,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54013,
    "c": 0.22511,
    "h": 332.4
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#B31EA6
secondary
#62CB6B
accent
#EE493A
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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