#B781EB#B781EB

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

Color values

HEX#B781EB
RGBrgb(183, 129, 235)
HSLhsl(271, 73%, 71%)
HSVhsv(271, 45%, 92%)
CMYKcmyk(22.1%, 45.1%, 0%, 7.8%)
CIE-LABlab(63.15, 40.80, -45.85)
CIE-LCHlch(63.15, 61.37, 311.66°)
OKLaboklab(69.9% 0.0938 -0.128)
OKLCHoklch(69.9% 0.159 306.2)
XYZxyz(42.3710, 31.7663, 82.4805)
Luminance0.3177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B781EB #B5EB81
analogous
#8281EB #B781EB #EB81EA
triadic
#B781EB #EBB781 #81EBB7
tetradic
#B781EB #EB8281 #B5EB81 #81EAEB
square
#B781EB #EB8281 #B5EB81 #81EAEB
split-complementary
#B781EB #EAEB81 #81EB82
monochromatic
#7A21D1 #994CE3 #B781EB #D5B6F3 #F0E5FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B781EB#FFFFFF#000000##000000
##B781EB1.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)
#6697EF
Deuteranopia (green-blind)
#7499E8
Tritanopia (blue-blind)
#AF93AB
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b781eb;
/* rgb */ color: rgb(183, 129, 235);
/* oklch */ color: oklch(69.9% 0.159 306.2);
Tailwind
colors: {
  custom: {
    50: '#cea6f2',
    500: '#b781eb',
    950: '#000000',
  },
}
SCSS
$custom: #b781eb;
$custom-light: #cea6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b781eb",
  "rgb": {
    "r": 183,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 270.566,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69899,
    "c": 0.15866,
    "h": 306.2
  },
  "luminance": 0.31766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B781EB

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

Preview Lab → · Contrast checker → · Palette generator →

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