#B31EAC#B31EAC

#B31EAC is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.4% C 0.229 H 330.4°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B31EAC
RGBrgb(179, 30, 172)
HSLhsl(303, 71%, 41%)
HSVhsv(303, 83%, 70%)
CMYKcmyk(0%, 83.2%, 3.9%, 29.8%)
CIE-LABlab(43.50, 70.19, -40.93)
CIE-LCHlch(43.50, 81.26, 329.75°)
OKLaboklab(54.36% 0.1994 -0.1132)
OKLCHoklch(54.36% 0.229 330.4)
XYZxyz(26.5010, 13.4930, 40.2304)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EAC #1EB325
analogous
#6F1EB3 #B31EAC #B31E61
triadic
#B31EAC #ACB31E #1EACB3
tetradic
#B31EAC #B36F1E #1EB325 #1E61B3
square
#B31EAC #B36F1E #1EB325 #1E61B3
split-complementary
#B31EAC #61B31E #1EB36F
monochromatic
#4A0C47 #7F157A #B31EAC #DD32D5 #E566DF

Accessibility & contrast

On white

5.68
#B31EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B31EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EAC
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EAC#FFFFFF#000000##FFFFFF
##B31EAC1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#516EA9
Tritanopia (blue-blind)
#BA3767
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31eac;
/* rgb */ color: rgb(179, 30, 172);
/* oklch */ color: oklch(54.4% 0.229 330.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc5',
    500: '#b31eac',
    950: '#000000',
  },
}
SCSS
$custom: #b31eac;
$custom-light: #ce6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b31eac",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 302.819,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54357,
    "c": 0.22926,
    "h": 330.4
  },
  "luminance": 0.13491
}

Semantic roles & 50–950 ramp

primary
#B31EAC
secondary
#62CB67
accent
#EE423A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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