#B31EAF#B31EAF

#B31EAF is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.5% C 0.231 H 329.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B31EAF
RGBrgb(179, 30, 175)
HSLhsl(302, 71%, 41%)
HSVhsv(302, 83%, 70%)
CMYKcmyk(0%, 83.2%, 2.2%, 29.8%)
CIE-LABlab(43.67, 70.65, -42.44)
CIE-LCHlch(43.67, 82.42, 329.01°)
OKLaboklab(54.53% 0.1993 -0.1176)
OKLCHoklch(54.53% 0.231 329.5)
XYZxyz(26.7924, 13.6096, 41.7649)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EAF #1EB322
analogous
#6C1EB3 #B31EAF #B31E64
triadic
#B31EAF #AFB31E #1EAFB3
tetradic
#B31EAF #B36C1E #1EB322 #1E64B3
square
#B31EAF #B36C1E #1EB322 #1E64B3
split-complementary
#B31EAF #64B31E #1EB36C
monochromatic
#4A0C49 #7F157C #B31EAF #DD32D8 #E566E2

Accessibility & contrast

On white

5.64
#B31EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B31EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EAF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EAF#FFFFFF#000000##FFFFFF
##B31EAF1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#4F6EAC
Tritanopia (blue-blind)
#BA3869
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31eaf;
/* rgb */ color: rgb(179, 30, 175);
/* oklch */ color: oklch(54.5% 0.231 329.5);
Tailwind
colors: {
  custom: {
    50: '#ce70c7',
    500: '#b31eaf',
    950: '#000000',
  },
}
SCSS
$custom: #b31eaf;
$custom-light: #ce70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31eaf",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 175
  },
  "hsl": {
    "h": 301.611,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54533,
    "c": 0.23136,
    "h": 329.5
  },
  "luminance": 0.13607
}

Semantic roles & 50–950 ramp

primary
#B31EAF
secondary
#62CB65
accent
#EE3F3A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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