#B281EC#B281EC

#B281EC is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.5% C 0.159 H 303.7°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#B281EC
RGBrgb(178, 129, 236)
HSLhsl(267, 74%, 72%)
HSVhsv(267, 45%, 93%)
CMYKcmyk(24.6%, 45.3%, 0%, 7.5%)
CIE-LABlab(62.69, 39.66, -47.16)
CIE-LCHlch(62.69, 61.61, 310.06°)
OKLaboklab(69.46% 0.0879 -0.1319)
OKLCHoklch(69.46% 0.159 303.7)
XYZxyz(41.3474, 31.2217, 83.1887)
Luminance0.3122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281EC #BBEC81
analogous
#8186EC #B281EC #E881EC
triadic
#B281EC #ECB281 #81ECB2
tetradic
#B281EC #EC8186 #BBEC81 #81ECE8
square
#B281EC #EC8186 #BBEC81 #81ECE8
split-complementary
#B281EC #ECE881 #86EC81
monochromatic
#7220D3 #924CE4 #B281EC #D3B6F4 #EFE4FB

Accessibility & contrast

On white

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

On black

7.24
#B281EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281EC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281EC#FFFFFF#000000##000000
##B281EC1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496F0
Deuteranopia (green-blind)
#7098E9
Tritanopia (blue-blind)
#A893AB
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b281ec;
/* rgb */ color: rgb(178, 129, 236);
/* oklch */ color: oklch(69.5% 0.159 303.7);
Tailwind
colors: {
  custom: {
    50: '#cba6f2',
    500: '#b281ec',
    950: '#000000',
  },
}
SCSS
$custom: #b281ec;
$custom-light: #cba6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b281ec",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 267.477,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69458,
    "c": 0.15852,
    "h": 303.7
  },
  "luminance": 0.31222
}

Semantic roles & 50–950 ramp

primary
#B281EC
secondary
#E6F2D7
accent
#D6107B
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #B281EC

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

Preview Lab → · Contrast checker → · Palette generator →

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