#B158E8#B158E8

#B158E8 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.1% C 0.215 H 310.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B158E8
RGBrgb(177, 88, 232)
HSLhsl(277, 76%, 63%)
HSVhsv(277, 62%, 91%)
CMYKcmyk(23.7%, 62.1%, 0%, 9%)
CIE-LABlab(54.19, 59.84, -58.47)
CIE-LCHlch(54.19, 83.66, 315.66°)
OKLaboklab(63.09% 0.1388 -0.1648)
OKLCHoklch(63.09% 0.215 310.1)
XYZxyz(36.1839, 22.1535, 78.6982)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158E8 #8FE858
analogous
#6958E8 #B158E8 #E858D7
triadic
#B158E8 #E8B158 #58E8B1
tetradic
#B158E8 #E86958 #8FE858 #58D7E8
square
#B158E8 #E86958 #8FE858 #58D7E8
split-complementary
#B158E8 #D7E858 #58E869
monochromatic
#7418AE #9822E1 #B158E8 #CA8EEF #E3C4F7

Accessibility & contrast

On white

3.87
#B158E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#B158E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158E8
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158E8#FFFFFF#000000##000000
##B158E81.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E7EEC
Deuteranopia (green-blind)
#4683E5
Tritanopia (blue-blind)
#AA7498
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b158e8;
/* rgb */ color: rgb(177, 88, 232);
/* oklch */ color: oklch(63.1% 0.215 310.1);
Tailwind
colors: {
  custom: {
    50: '#cc8cf0',
    500: '#b158e8',
    950: '#000000',
  },
}
SCSS
$custom: #b158e8;
$custom-light: #cc8cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#b158e8",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 277.083,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63093,
    "c": 0.21549,
    "h": 310.1
  },
  "luminance": 0.22153
}

Semantic roles & 50–950 ramp

primary
#B158E8
secondary
#C8E8B4
accent
#D80E5B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #B158E8

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

Preview Lab → · Contrast checker → · Palette generator →

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