#B291EF#B291EF

#B291EF is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.4% C 0.137 H 299.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#B291EF
RGBrgb(178, 145, 239)
HSLhsl(261, 75%, 75%)
HSVhsv(261, 39%, 94%)
CMYKcmyk(25.5%, 39.3%, 0%, 6.3%)
CIE-LABlab(66.48, 31.45, -42.85)
CIE-LCHlch(66.48, 53.16, 306.28°)
OKLaboklab(72.36% 0.0666 -0.1195)
OKLCHoklch(72.36% 0.137 299.1)
XYZxyz(44.0619, 35.9475, 86.2618)
Luminance0.3595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B291EF #CEEF91
analogous
#919FEF #B291EF #E191EF
triadic
#B291EF #EFB291 #91EFB2
tetradic
#B291EF #EF919F #CEEF91 #91EFE1
square
#B291EF #EF919F #CEEF91 #91EFE1
split-complementary
#B291EF #EFE191 #9FEF91
monochromatic
#6726DF #8D5CE7 #B291EF #D7C6F7 #ECE4FB

Accessibility & contrast

On white

2.56
#B291EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#B291EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B291EF
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B291EF#FFFFFF#000000##000000
##B291EF1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A2F3
Deuteranopia (green-blind)
#7FA1ED
Tritanopia (blue-blind)
#A6A1B5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b291ef;
/* rgb */ color: rgb(178, 145, 239);
/* oklch */ color: oklch(72.4% 0.137 299.1);
Tailwind
colors: {
  custom: {
    50: '#cbb1f4',
    500: '#b291ef',
    950: '#000000',
  },
}
SCSS
$custom: #b291ef;
$custom-light: #cbb1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b291ef",
  "rgb": {
    "r": 178,
    "g": 145,
    "b": 239
  },
  "hsl": {
    "h": 261.064,
    "s": 74.603,
    "l": 75.294
  },
  "oklch": {
    "l": 0.72358,
    "c": 0.13677,
    "h": 299.1
  },
  "luminance": 0.35948
}

Semantic roles & 50–950 ramp

primary
#B291EF
secondary
#E9F3D8
accent
#D70F91
background
#FCFAFE
surface
#F9F5FD
border
#D2CFD5
text
#131117
muted
#828085

Preview Lab

Preview with #B291EF

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

Preview Lab → · Contrast checker → · Palette generator →

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