#BE31B7#BE31B7

#BE31B7 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.226 H 330.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BE31B7
RGBrgb(190, 49, 183)
HSLhsl(303, 59%, 47%)
HSVhsv(303, 74%, 75%)
CMYKcmyk(0%, 74.2%, 3.7%, 25.5%)
CIE-LABlab(47.71, 69.13, -40.62)
CIE-LCHlch(47.71, 80.18, 329.56°)
OKLaboklab(57.91% 0.196 -0.1121)
OKLCHoklch(57.91% 0.226 330.2)
XYZxyz(30.8806, 16.5651, 46.3615)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BE31B7 #31BE38
analogous
#7F31BE #BE31B7 #BE3170
triadic
#BE31B7 #B7BE31 #31B7BE
tetradic
#BE31B7 #BE7F31 #31BE38 #3170BE
square
#BE31B7 #BE7F31 #31BE38 #3170BE
split-complementary
#BE31B7 #70BE31 #31BE7F
monochromatic
#5D1859 #8D2488 #BE31B7 #D458CE #E189DC

Accessibility & contrast

On white

4.87
#BE31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BE31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BE31B7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BE31B7#FFFFFF#000000##FFFFFF
##BE31B71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#5C78B4
Tritanopia (blue-blind)
#C54472
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #be31b7;
/* rgb */ color: rgb(190, 49, 183);
/* oklch */ color: oklch(57.9% 0.226 330.2);
Tailwind
colors: {
  custom: {
    50: '#d678cd',
    500: '#be31b7',
    950: '#000000',
  },
}
SCSS
$custom: #be31b7;
$custom-light: #d678cd;
$custom-dark: #000000;
JSON
{
  "hex": "#be31b7",
  "rgb": {
    "r": 190,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 302.979,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57907,
    "c": 0.22583,
    "h": 330.2
  },
  "luminance": 0.16563
}

Semantic roles & 50–950 ramp

primary
#BE31B7
secondary
#80CA84
accent
#E24D46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BE31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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