#B581EB#B581EB

#B581EB is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.7% C 0.158 H 305.3°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#B581EB
RGBrgb(181, 129, 235)
HSLhsl(269, 73%, 71%)
HSVhsv(269, 45%, 92%)
CMYKcmyk(23%, 45.1%, 0%, 7.8%)
CIE-LABlab(62.95, 40.24, -46.19)
CIE-LCHlch(62.95, 61.26, 311.07°)
OKLaboklab(69.7% 0.0914 -0.129)
OKLCHoklch(69.7% 0.158 305.3)
XYZxyz(41.8986, 31.5227, 82.4584)
Luminance0.3152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581EB #B7EB81
analogous
#8182EB #B581EB #EA81EB
triadic
#B581EB #EBB581 #81EBB5
tetradic
#B581EB #EB8182 #B7EB81 #81EBEA
square
#B581EB #EB8182 #B7EB81 #81EBEA
split-complementary
#B581EB #EBEA81 #82EB81
monochromatic
#7721D1 #964CE3 #B581EB #D4B6F3 #EFE5FB

Accessibility & contrast

On white

2.87
#B581EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#B581EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581EB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581EB#FFFFFF#000000##000000
##B581EB1.002.877.307.30
#FFFFFF2.871.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6597EF
Deuteranopia (green-blind)
#7299E8
Tritanopia (blue-blind)
#AC93AB
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b581eb;
/* rgb */ color: rgb(181, 129, 235);
/* oklch */ color: oklch(69.7% 0.158 305.3);
Tailwind
colors: {
  custom: {
    50: '#cda6f2',
    500: '#b581eb',
    950: '#000000',
  },
}
SCSS
$custom: #b581eb;
$custom-light: #cda6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b581eb",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 269.434,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.697,
    "c": 0.15809,
    "h": 305.3
  },
  "luminance": 0.31522
}

Semantic roles & 50–950 ramp

primary
#B581EB
secondary
#E4F2D6
accent
#D51175
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581EB

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

Preview Lab → · Contrast checker → · Palette generator →

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