#B158EC#B158EC

#B158EC is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.3% C 0.220 H 309.2°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B158EC
RGBrgb(177, 88, 236)
HSLhsl(276, 80%, 64%)
HSVhsv(276, 63%, 93%)
CMYKcmyk(25%, 62.7%, 0%, 7.5%)
CIE-LABlab(54.43, 60.70, -60.32)
CIE-LCHlch(54.43, 85.58, 315.18°)
OKLaboklab(63.35% 0.1387 -0.1703)
OKLCHoklch(63.35% 0.22 309.2)
XYZxyz(36.7585, 22.3833, 81.7246)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158EC #93EC58
analogous
#6758EC #B158EC #EC58DD
triadic
#B158EC #ECB158 #58ECB1
tetradic
#B158EC #EC6758 #93EC58 #58DDEC
square
#B158EC #EC6758 #93EC58 #58DDEC
split-complementary
#B158EC #DDEC58 #58EC67
monochromatic
#7515B5 #9721E6 #B158EC #CB8FF2 #E4C6F9

Accessibility & contrast

On white

3.83
#B158EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#B158EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158EC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158EC#FFFFFF#000000##000000
##B158EC1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#4283E9
Tritanopia (blue-blind)
#A9769A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b158ec;
/* rgb */ color: rgb(177, 88, 236);
/* oklch */ color: oklch(63.3% 0.220 309.2);
Tailwind
colors: {
  custom: {
    50: '#cc8cf3',
    500: '#b158ec',
    950: '#000000',
  },
}
SCSS
$custom: #b158ec;
$custom-light: #cc8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b158ec",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 276.081,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63345,
    "c": 0.21959,
    "h": 309.2
  },
  "luminance": 0.22383
}

Semantic roles & 50–950 ramp

primary
#B158EC
secondary
#CBEAB6
accent
#DC0A5D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B158EC

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

Preview Lab → · Contrast checker → · Palette generator →

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