#B581E8#B581E8

#B581E8 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.5% C 0.154 H 306.1°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#B581E8
RGBrgb(181, 129, 232)
HSLhsl(270, 69%, 71%)
HSVhsv(270, 44%, 91%)
CMYKcmyk(22%, 44.4%, 0%, 9%)
CIE-LABlab(62.80, 39.56, -44.75)
CIE-LCHlch(62.80, 59.73, 311.48°)
OKLaboklab(69.55% 0.0909 -0.1248)
OKLCHoklch(69.55% 0.154 306.1)
XYZxyz(41.4688, 31.3508, 80.1950)
Luminance0.3135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581E8 #B4E881
analogous
#8181E8 #B581E8 #E881E8
triadic
#B581E8 #E8B581 #81E8B5
tetradic
#B581E8 #E88181 #B4E881 #81E8E8
square
#B581E8 #E88181 #B4E881 #81E8E8
split-complementary
#B581E8 #E8E881 #81E881
monochromatic
#7825CA #974DDF #B581E8 #D3B5F1 #F0E5FA

Accessibility & contrast

On white

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

On black

7.27
#B581E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581E8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581E8#FFFFFF#000000##000000
##B581E81.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6796EC
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#AD92A9
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b581e8;
/* rgb */ color: rgb(181, 129, 232);
/* oklch */ color: oklch(69.5% 0.154 306.1);
Tailwind
colors: {
  custom: {
    50: '#cda6f0',
    500: '#b581e8',
    950: '#000000',
  },
}
SCSS
$custom: #b581e8;
$custom-light: #cda6f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b581e8",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 232
  },
  "hsl": {
    "h": 270.291,
    "s": 69.128,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69546,
    "c": 0.15445,
    "h": 306.1
  },
  "luminance": 0.3135
}

Semantic roles & 50–950 ramp

primary
#B581E8
secondary
#E2F0D5
accent
#D11472
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #B581E8

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

Preview Lab → · Contrast checker → · Palette generator →

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