#B158E6#B158E6

#B158E6 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.0% C 0.213 H 310.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#B158E6
RGBrgb(177, 88, 230)
HSLhsl(278, 74%, 62%)
HSVhsv(278, 62%, 90%)
CMYKcmyk(23%, 61.7%, 0%, 9.8%)
CIE-LABlab(54.07, 59.41, -57.54)
CIE-LCHlch(54.07, 82.70, 315.92°)
OKLaboklab(62.97% 0.1389 -0.1621)
OKLCHoklch(62.97% 0.213 310.6)
XYZxyz(35.9014, 22.0405, 77.2106)
Luminance0.2204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158E6 #8DE658
analogous
#6A58E6 #B158E6 #E658D4
triadic
#B158E6 #E6B158 #58E6B1
tetradic
#B158E6 #E66A58 #8DE658 #58D4E6
square
#B158E6 #E66A58 #8DE658 #58D4E6
split-complementary
#B158E6 #D4E658 #58E66A
monochromatic
#7419AA #9823DE #B158E6 #CA8DEE #E3C2F6

Accessibility & contrast

On white

3.88
#B158E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#B158E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158E6
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158E6#FFFFFF#000000##000000
##B158E61.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#157DEA
Deuteranopia (green-blind)
#4883E3
Tritanopia (blue-blind)
#AA7497
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b158e6;
/* rgb */ color: rgb(177, 88, 230);
/* oklch */ color: oklch(63.0% 0.213 310.6);
Tailwind
colors: {
  custom: {
    50: '#cc8cef',
    500: '#b158e6',
    950: '#000000',
  },
}
SCSS
$custom: #b158e6;
$custom-light: #cc8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#b158e6",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 277.606,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62968,
    "c": 0.21345,
    "h": 310.6
  },
  "luminance": 0.2204
}

Semantic roles & 50–950 ramp

primary
#B158E6
secondary
#C6E7B3
accent
#D60F5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158E6

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

Preview Lab → · Contrast checker → · Palette generator →

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