#B158ED#B158ED

#B158ED is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.4% C 0.221 H 308.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B158ED
RGBrgb(177, 88, 237)
HSLhsl(276, 81%, 64%)
HSVhsv(276, 63%, 93%)
CMYKcmyk(25.3%, 62.9%, 0%, 7.1%)
CIE-LABlab(54.49, 60.92, -60.79)
CIE-LCHlch(54.49, 86.06, 315.06°)
OKLaboklab(63.41% 0.1386 -0.1716)
OKLCHoklch(63.41% 0.221 308.9)
XYZxyz(36.9042, 22.4416, 82.4919)
Luminance0.2244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158ED #94ED58
analogous
#6658ED #B158ED #ED58DE
triadic
#B158ED #EDB158 #58EDB1
tetradic
#B158ED #ED6658 #94ED58 #58DEED
square
#B158ED #ED6658 #94ED58 #58DEED
split-complementary
#B158ED #DEED58 #58ED66
monochromatic
#7514B7 #9721E7 #B158ED #CB8FF3 #E5C6F9

Accessibility & contrast

On white

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

On black

5.49
#B158ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158ED
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158ED#FFFFFF#000000##000000
##B158ED1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF2
Deuteranopia (green-blind)
#4184EA
Tritanopia (blue-blind)
#A8769B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b158ed;
/* rgb */ color: rgb(177, 88, 237);
/* oklch */ color: oklch(63.4% 0.221 308.9);
Tailwind
colors: {
  custom: {
    50: '#cc8cf4',
    500: '#b158ed',
    950: '#000000',
  },
}
SCSS
$custom: #b158ed;
$custom-light: #cc8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b158ed",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 237
  },
  "hsl": {
    "h": 275.839,
    "s": 80.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63409,
    "c": 0.22061,
    "h": 308.9
  },
  "luminance": 0.22441
}

Semantic roles & 50–950 ramp

primary
#B158ED
secondary
#CBEBB6
accent
#DD095E
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B158ED

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

Preview Lab → · Contrast checker → · Palette generator →

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