#B158E4#B158E4

#B158E4 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.8% C 0.211 H 311.1°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B158E4
RGBrgb(177, 88, 228)
HSLhsl(278, 72%, 62%)
HSVhsv(278, 61%, 89%)
CMYKcmyk(22.4%, 61.4%, 0%, 10.6%)
CIE-LABlab(53.95, 58.98, -56.60)
CIE-LCHlch(53.95, 81.75, 316.18°)
OKLaboklab(62.84% 0.1389 -0.1594)
OKLCHoklch(62.84% 0.211 311.1)
XYZxyz(35.6222, 21.9288, 75.7399)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158E4 #8BE458
analogous
#6B58E4 #B158E4 #E458D1
triadic
#B158E4 #E4B158 #58E4B1
tetradic
#B158E4 #E46B58 #8BE458 #58D1E4
square
#B158E4 #E46B58 #8BE458 #58D1E4
split-complementary
#B158E4 #D1E458 #58E46B
monochromatic
#741BA7 #9823DB #B158E4 #CA8DED #E2C1F5

Accessibility & contrast

On white

3.90
#B158E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#B158E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158E4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158E4#FFFFFF#000000##000000
##B158E41.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7DE8
Deuteranopia (green-blind)
#4A83E1
Tritanopia (blue-blind)
#AB7396
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b158e4;
/* rgb */ color: rgb(177, 88, 228);
/* oklch */ color: oklch(62.8% 0.211 311.1);
Tailwind
colors: {
  custom: {
    50: '#cc8ced',
    500: '#b158e4',
    950: '#000000',
  },
}
SCSS
$custom: #b158e4;
$custom-light: #cc8ced;
$custom-dark: #000000;
JSON
{
  "hex": "#b158e4",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 278.143,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62844,
    "c": 0.21141,
    "h": 311.1
  },
  "luminance": 0.21928
}

Semantic roles & 50–950 ramp

primary
#B158E4
secondary
#C5E6B2
accent
#D41158
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158E4

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

Preview Lab → · Contrast checker → · Palette generator →

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