#B158E5#B158E5

#B158E5 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 62.9% C 0.212 H 310.8°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B158E5
RGBrgb(177, 88, 229)
HSLhsl(278, 73%, 62%)
HSVhsv(278, 62%, 90%)
CMYKcmyk(22.7%, 61.6%, 0%, 10.2%)
CIE-LABlab(54.01, 59.19, -57.07)
CIE-LCHlch(54.01, 82.22, 316.05°)
OKLaboklab(62.91% 0.1389 -0.1607)
OKLCHoklch(62.91% 0.212 310.8)
XYZxyz(35.7614, 21.9845, 76.4731)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158E5 #8CE558
analogous
#6A58E5 #B158E5 #E558D3
triadic
#B158E5 #E5B158 #58E5B1
tetradic
#B158E5 #E56A58 #8CE558 #58D3E5
square
#B158E5 #E56A58 #8CE558 #58D3E5
split-complementary
#B158E5 #D3E558 #58E56A
monochromatic
#741AA8 #9823DD #B158E5 #CA8DED #E2C2F5

Accessibility & contrast

On white

3.89
#B158E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#B158E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158E5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158E5#FFFFFF#000000##000000
##B158E51.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#187DE9
Deuteranopia (green-blind)
#4983E2
Tritanopia (blue-blind)
#AA7397
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b158e5;
/* rgb */ color: rgb(177, 88, 229);
/* oklch */ color: oklch(62.9% 0.212 310.8);
Tailwind
colors: {
  custom: {
    50: '#cc8cee',
    500: '#b158e5',
    950: '#000000',
  },
}
SCSS
$custom: #b158e5;
$custom-light: #cc8cee;
$custom-dark: #000000;
JSON
{
  "hex": "#b158e5",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 229
  },
  "hsl": {
    "h": 277.872,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62906,
    "c": 0.21243,
    "h": 310.8
  },
  "luminance": 0.21984
}

Semantic roles & 50–950 ramp

primary
#B158E5
secondary
#C6E6B3
accent
#D51059
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158E5

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

Preview Lab → · Contrast checker → · Palette generator →

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