#B158E3#B158E3

#B158E3 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.8% C 0.210 H 311.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B158E3
RGBrgb(177, 88, 227)
HSLhsl(278, 71%, 62%)
HSVhsv(278, 61%, 89%)
CMYKcmyk(22%, 61.2%, 0%, 11%)
CIE-LABlab(53.89, 58.77, -56.13)
CIE-LCHlch(53.89, 81.27, 316.31°)
OKLaboklab(62.78% 0.1389 -0.158)
OKLCHoklch(62.78% 0.21 311.3)
XYZxyz(35.4838, 21.8734, 75.0109)
Luminance0.2187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158E3 #8AE358
analogous
#6C58E3 #B158E3 #E358D0
triadic
#B158E3 #E3B158 #58E3B1
tetradic
#B158E3 #E36C58 #8AE358 #58D0E3
square
#B158E3 #E36C58 #8AE358 #58D0E3
split-complementary
#B158E3 #D0E358 #58E36C
monochromatic
#741CA5 #9824D9 #B158E3 #C98CEC #E2C1F5

Accessibility & contrast

On white

3.91
#B158E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#B158E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158E3
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158E3#FFFFFF#000000##000000
##B158E31.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7CE7
Deuteranopia (green-blind)
#4B83E0
Tritanopia (blue-blind)
#AB7296
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b158e3;
/* rgb */ color: rgb(177, 88, 227);
/* oklch */ color: oklch(62.8% 0.210 311.3);
Tailwind
colors: {
  custom: {
    50: '#cc8cec',
    500: '#b158e3',
    950: '#000000',
  },
}
SCSS
$custom: #b158e3;
$custom-light: #cc8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#b158e3",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 227
  },
  "hsl": {
    "h": 278.417,
    "s": 71.282,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62782,
    "c": 0.21039,
    "h": 311.3
  },
  "luminance": 0.21873
}

Semantic roles & 50–950 ramp

primary
#B158E3
secondary
#C4E5B2
accent
#D31258
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158E3

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

Preview Lab → · Contrast checker → · Palette generator →

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