#B281EA#B281EA

#B281EA is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.4% C 0.156 H 304.2°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#B281EA
RGBrgb(178, 129, 234)
HSLhsl(268, 71%, 71%)
HSVhsv(268, 45%, 92%)
CMYKcmyk(23.9%, 44.9%, 0%, 8.2%)
CIE-LABlab(62.60, 39.19, -46.20)
CIE-LCHlch(62.60, 60.59, 310.31°)
OKLaboklab(69.35% 0.0876 -0.1291)
OKLCHoklch(69.35% 0.156 304.2)
XYZxyz(41.0585, 31.1061, 81.6670)
Luminance0.3111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281EA #B9EA81
analogous
#8184EA #B281EA #E681EA
triadic
#B281EA #EAB281 #81EAB2
tetradic
#B281EA #EA8184 #B9EA81 #81EAE6
square
#B281EA #EA8184 #B9EA81 #81EAE6
split-complementary
#B281EA #EAE681 #84EA81
monochromatic
#7322CE #924DE1 #B281EA #D2B5F3 #EFE5FB

Accessibility & contrast

On white

2.91
#B281EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#B281EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281EA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281EA#FFFFFF#000000##000000
##B281EA1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6596EE
Deuteranopia (green-blind)
#7197E7
Tritanopia (blue-blind)
#A993AA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b281ea;
/* rgb */ color: rgb(178, 129, 234);
/* oklch */ color: oklch(69.4% 0.156 304.2);
Tailwind
colors: {
  custom: {
    50: '#cba6f1',
    500: '#b281ea',
    950: '#000000',
  },
}
SCSS
$custom: #b281ea;
$custom-light: #cba6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b281ea",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 268,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69354,
    "c": 0.15607,
    "h": 304.2
  },
  "luminance": 0.31106
}

Semantic roles & 50–950 ramp

primary
#B281EA
secondary
#E4F1D6
accent
#D31279
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #B281EA

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

Preview Lab → · Contrast checker → · Palette generator →

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