#B291EC#B291EC

#B291EC is a light, vivid violet. Relative luminance 0.358; OKLCH L 72.2% C 0.133 H 299.8°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#B291EC
RGBrgb(178, 145, 236)
HSLhsl(262, 71%, 75%)
HSVhsv(262, 39%, 93%)
CMYKcmyk(24.6%, 38.6%, 0%, 7.5%)
CIE-LABlab(66.35, 30.74, -41.42)
CIE-LCHlch(66.35, 51.58, 306.59°)
OKLaboklab(72.21% 0.066 -0.1153)
OKLCHoklch(72.21% 0.133 299.8)
XYZxyz(43.6224, 35.7717, 83.9471)
Luminance0.3577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B291EC #CBEC91
analogous
#919EEC #B291EC #DF91EC
triadic
#B291EC #ECB291 #91ECB2
tetradic
#B291EC #EC919E #CBEC91 #91ECDF
square
#B291EC #EC919E #CBEC91 #91ECDF
split-complementary
#B291EC #ECDF91 #9EEC91
monochromatic
#6929DA #8D5DE3 #B291EC #D7C5F5 #EDE5FA

Accessibility & contrast

On white

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

On black

8.15
#B291EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B291EC
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B291EC#FFFFFF#000000##000000
##B291EC1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA1EF
Deuteranopia (green-blind)
#80A1EA
Tritanopia (blue-blind)
#A7A0B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b291ec;
/* rgb */ color: rgb(178, 145, 236);
/* oklch */ color: oklch(72.2% 0.133 299.8);
Tailwind
colors: {
  custom: {
    50: '#cab1f2',
    500: '#b291ec',
    950: '#000000',
  },
}
SCSS
$custom: #b291ec;
$custom-light: #cab1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b291ec",
  "rgb": {
    "r": 178,
    "g": 145,
    "b": 236
  },
  "hsl": {
    "h": 261.758,
    "s": 70.543,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72211,
    "c": 0.13286,
    "h": 299.8
  },
  "luminance": 0.35772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B291EC

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

Preview Lab → · Contrast checker → · Palette generator →

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