#B281EB#B281EB

#B281EB is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.4% C 0.157 H 303.9°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#B281EB
RGBrgb(178, 129, 235)
HSLhsl(268, 73%, 71%)
HSVhsv(268, 45%, 92%)
CMYKcmyk(24.3%, 45.1%, 0%, 7.8%)
CIE-LABlab(62.65, 39.42, -46.68)
CIE-LCHlch(62.65, 61.10, 310.18°)
OKLaboklab(69.41% 0.0878 -0.1305)
OKLCHoklch(69.41% 0.157 303.9)
XYZxyz(41.2025, 31.1638, 82.4257)
Luminance0.3116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281EB #BAEB81
analogous
#8185EB #B281EB #E781EB
triadic
#B281EB #EBB281 #81EBB2
tetradic
#B281EB #EB8185 #BAEB81 #81EBE7
square
#B281EB #EB8185 #BAEB81 #81EBE7
split-complementary
#B281EB #EBE781 #85EB81
monochromatic
#7221D1 #924CE3 #B281EB #D2B6F3 #EFE5FB

Accessibility & contrast

On white

2.90
#B281EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#B281EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281EB
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281EB#FFFFFF#000000##000000
##B281EB1.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#7097E8
Tritanopia (blue-blind)
#A893AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b281eb;
/* rgb */ color: rgb(178, 129, 235);
/* oklch */ color: oklch(69.4% 0.157 303.9);
Tailwind
colors: {
  custom: {
    50: '#cba6f2',
    500: '#b281eb',
    950: '#000000',
  },
}
SCSS
$custom: #b281eb;
$custom-light: #cba6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b281eb",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 267.736,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69406,
    "c": 0.15729,
    "h": 303.9
  },
  "luminance": 0.31164
}

Semantic roles & 50–950 ramp

primary
#B281EB
secondary
#E5F2D6
accent
#D5117A
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #B281EB

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

Preview Lab → · Contrast checker → · Palette generator →

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