#B581E7#B581E7

#B581E7 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.5% C 0.153 H 306.3°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#B581E7
RGBrgb(181, 129, 231)
HSLhsl(271, 68%, 71%)
HSVhsv(271, 44%, 91%)
CMYKcmyk(21.6%, 44.2%, 0%, 9.4%)
CIE-LABlab(62.76, 39.33, -44.27)
CIE-LCHlch(62.76, 59.22, 311.62°)
OKLaboklab(69.49% 0.0908 -0.1235)
OKLCHoklch(69.49% 0.153 306.3)
XYZxyz(41.3272, 31.2941, 79.4490)
Luminance0.3129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581E7 #B3E781
analogous
#8281E7 #B581E7 #E781E6
triadic
#B581E7 #E7B581 #81E7B5
tetradic
#B581E7 #E78281 #B3E781 #81E6E7
square
#B581E7 #E78281 #B3E781 #81E6E7
split-complementary
#B581E7 #E6E781 #81E782
monochromatic
#7826C8 #974EDD #B581E7 #D3B4F1 #F0E5FA

Accessibility & contrast

On white

2.89
#B581E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#B581E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581E7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581E7#FFFFFF#000000##000000
##B581E71.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6896EB
Deuteranopia (green-blind)
#7598E4
Tritanopia (blue-blind)
#AD92A9
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b581e7;
/* rgb */ color: rgb(181, 129, 231);
/* oklch */ color: oklch(69.5% 0.153 306.3);
Tailwind
colors: {
  custom: {
    50: '#cda6ef',
    500: '#b581e7',
    950: '#000000',
  },
}
SCSS
$custom: #b581e7;
$custom-light: #cda6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b581e7",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 231
  },
  "hsl": {
    "h": 270.588,
    "s": 68,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69495,
    "c": 0.15324,
    "h": 306.3
  },
  "luminance": 0.31294
}

Semantic roles & 50–950 ramp

primary
#B581E7
secondary
#E2F0D4
accent
#D01671
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #B581E7

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

Preview Lab → · Contrast checker → · Palette generator →

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