#B31EA5#B31EA5

#B31EA5 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.224 H 332.7°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B31EA5
RGBrgb(179, 30, 165)
HSLhsl(306, 71%, 41%)
HSVhsv(306, 83%, 70%)
CMYKcmyk(0%, 83.2%, 7.8%, 29.8%)
CIE-LABlab(43.11, 69.15, -37.38)
CIE-LCHlch(43.11, 78.61, 331.61°)
OKLaboklab(53.96% 0.1994 -0.1029)
OKLCHoklch(53.96% 0.224 332.7)
XYZxyz(25.8464, 13.2311, 36.7826)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EA5 #1EB32C
analogous
#761EB3 #B31EA5 #B31E5A
triadic
#B31EA5 #A5B31E #1EA5B3
tetradic
#B31EA5 #B3761E #1EB32C #1E5AB3
square
#B31EA5 #B3761E #1EB32C #1E5AB3
split-complementary
#B31EA5 #5AB31E #1EB376
monochromatic
#4A0C44 #7F1575 #B31EA5 #DD32CD #E566D9

Accessibility & contrast

On white

5.76
#B31EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31EA5
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EA5#FFFFFF#000000##FFFFFF
##B31EA51.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#BB3263
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ea5;
/* rgb */ color: rgb(179, 30, 165);
/* oklch */ color: oklch(54.0% 0.224 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6fc0',
    500: '#b31ea5',
    950: '#000000',
  },
}
SCSS
$custom: #b31ea5;
$custom-light: #ce6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ea5",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 165
  },
  "hsl": {
    "h": 305.638,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53956,
    "c": 0.22443,
    "h": 332.7
  },
  "luminance": 0.13229
}

Semantic roles & 50–950 ramp

primary
#B31EA5
secondary
#62CB6C
accent
#EE4B3A
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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