#B581EF#B581EF

#B581EF is a light, vivid violet. Relative luminance 0.318; OKLCH L 69.9% C 0.163 H 304.3°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#B581EF
RGBrgb(181, 129, 239)
HSLhsl(268, 77%, 72%)
HSVhsv(268, 46%, 94%)
CMYKcmyk(24.3%, 46%, 0%, 6.3%)
CIE-LABlab(63.14, 41.17, -48.09)
CIE-LCHlch(63.14, 63.30, 310.56°)
OKLaboklab(69.91% 0.0919 -0.1345)
OKLCHoklch(69.91% 0.163 304.3)
XYZxyz(42.4830, 31.7564, 85.5361)
Luminance0.3176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581EF #BBEF81
analogous
#8184EF #B581EF #EC81EF
triadic
#B581EF #EFB581 #81EFB5
tetradic
#B581EF #EF8184 #BBEF81 #81EFEC
square
#B581EF #EF8184 #BBEF81 #81EFEC
split-complementary
#B581EF #EFEC81 #84EF81
monochromatic
#761CDA #954BE8 #B581EF #D5B7F6 #EFE4FC

Accessibility & contrast

On white

2.86
#B581EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#B581EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581EF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581EF#FFFFFF#000000##000000
##B581EF1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6397F3
Deuteranopia (green-blind)
#7099EC
Tritanopia (blue-blind)
#AB94AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b581ef;
/* rgb */ color: rgb(181, 129, 239);
/* oklch */ color: oklch(69.9% 0.163 304.3);
Tailwind
colors: {
  custom: {
    50: '#cda6f5',
    500: '#b581ef',
    950: '#000000',
  },
}
SCSS
$custom: #b581ef;
$custom-light: #cda6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b581ef",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 268.364,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.6991,
    "c": 0.16295,
    "h": 304.3
  },
  "luminance": 0.31756
}

Semantic roles & 50–950 ramp

primary
#B581EF
secondary
#E6F3D8
accent
#DA0C78
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581EF

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

Preview Lab → · Contrast checker → · Palette generator →

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