#B291EB#B291EB

#B291EB is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.2% C 0.132 H 300.0°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B291EB
RGBrgb(178, 145, 235)
HSLhsl(262, 69%, 75%)
HSVhsv(262, 38%, 92%)
CMYKcmyk(24.3%, 38.3%, 0%, 7.8%)
CIE-LABlab(66.30, 30.51, -40.94)
CIE-LCHlch(66.30, 51.05, 306.70°)
OKLaboklab(72.16% 0.0658 -0.1139)
OKLCHoklch(72.16% 0.132 300)
XYZxyz(43.4775, 35.7137, 83.1841)
Luminance0.3571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B291EB #CAEB91
analogous
#919DEB #B291EB #DF91EB
triadic
#B291EB #EBB291 #91EBB2
tetradic
#B291EB #EB919D #CAEB91 #91EBDF
square
#B291EB #EB919D #CAEB91 #91EBDF
split-complementary
#B291EB #EBDF91 #9DEB91
monochromatic
#6A29D8 #8E5DE2 #B291EB #D6C5F4 #EDE5FA

Accessibility & contrast

On white

2.58
#B291EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B291EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B291EB
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B291EB#FFFFFF#000000##000000
##B291EB1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA1EE
Deuteranopia (green-blind)
#81A1E9
Tritanopia (blue-blind)
#A7A0B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b291eb;
/* rgb */ color: rgb(178, 145, 235);
/* oklch */ color: oklch(72.2% 0.132 300.0);
Tailwind
colors: {
  custom: {
    50: '#cab1f2',
    500: '#b291eb',
    950: '#000000',
  },
}
SCSS
$custom: #b291eb;
$custom-light: #cab1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b291eb",
  "rgb": {
    "r": 178,
    "g": 145,
    "b": 235
  },
  "hsl": {
    "h": 262,
    "s": 69.231,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72163,
    "c": 0.13156,
    "h": 300
  },
  "luminance": 0.35714
}

Semantic roles & 50–950 ramp

primary
#B291EB
secondary
#E9F2D9
accent
#D1148C
background
#FCFAFE
surface
#F9F5FD
border
#D2CFD5
text
#131017
muted
#827F85

Preview Lab

Preview with #B291EB

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

Preview Lab → · Contrast checker → · Palette generator →

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