#B581EC#B581EC

#B581EC is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.8% C 0.159 H 305.1°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#B581EC
RGBrgb(181, 129, 236)
HSLhsl(269, 74%, 72%)
HSVhsv(269, 45%, 93%)
CMYKcmyk(23.3%, 45.3%, 0%, 7.5%)
CIE-LABlab(62.99, 40.47, -46.66)
CIE-LCHlch(62.99, 61.77, 310.94°)
OKLaboklab(69.75% 0.0915 -0.1304)
OKLCHoklch(69.75% 0.159 305.1)
XYZxyz(42.0435, 31.5806, 83.2214)
Luminance0.3158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581EC #B8EC81
analogous
#8183EC #B581EC #EB81EC
triadic
#B581EC #ECB581 #81ECB5
tetradic
#B581EC #EC8183 #B8EC81 #81ECEB
square
#B581EC #EC8183 #B8EC81 #81ECEB
split-complementary
#B581EC #ECEB81 #83EC81
monochromatic
#7720D3 #964CE4 #B581EC #D4B6F4 #EFE4FB

Accessibility & contrast

On white

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

On black

7.32
#B581EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581EC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581EC#FFFFFF#000000##000000
##B581EC1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b581ec;
/* rgb */ color: rgb(181, 129, 236);
/* oklch */ color: oklch(69.8% 0.159 305.1);
Tailwind
colors: {
  custom: {
    50: '#cda6f2',
    500: '#b581ec',
    950: '#000000',
  },
}
SCSS
$custom: #b581ec;
$custom-light: #cda6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b581ec",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 269.159,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69752,
    "c": 0.1593,
    "h": 305.1
  },
  "luminance": 0.3158
}

Semantic roles & 50–950 ramp

primary
#B581EC
secondary
#E5F2D7
accent
#D61076
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581EC

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

Preview Lab → · Contrast checker → · Palette generator →

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