#B158E7#B158E7

#B158E7 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.0% C 0.214 H 310.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B158E7
RGBrgb(177, 88, 231)
HSLhsl(277, 75%, 63%)
HSVhsv(277, 62%, 91%)
CMYKcmyk(23.4%, 61.9%, 0%, 9.4%)
CIE-LABlab(54.13, 59.62, -58.00)
CIE-LCHlch(54.13, 83.18, 315.79°)
OKLaboklab(63.03% 0.1388 -0.1635)
OKLCHoklch(63.03% 0.214 310.3)
XYZxyz(36.0422, 22.0968, 77.9523)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158E7 #8EE758
analogous
#6A58E7 #B158E7 #E758D5
triadic
#B158E7 #E7B158 #58E7B1
tetradic
#B158E7 #E76A58 #8EE758 #58D5E7
square
#B158E7 #E76A58 #8EE758 #58D5E7
split-complementary
#B158E7 #D5E758 #58E76A
monochromatic
#7419AC #9822DF #B158E7 #CA8EEF #E3C3F6

Accessibility & contrast

On white

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

On black

5.42
#B158E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158E7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158E7#FFFFFF#000000##000000
##B158E71.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#127DEB
Deuteranopia (green-blind)
#4783E4
Tritanopia (blue-blind)
#AA7498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b158e7;
/* rgb */ color: rgb(177, 88, 231);
/* oklch */ color: oklch(63.0% 0.214 310.3);
Tailwind
colors: {
  custom: {
    50: '#cc8cef',
    500: '#b158e7',
    950: '#000000',
  },
}
SCSS
$custom: #b158e7;
$custom-light: #cc8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#b158e7",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 277.343,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6303,
    "c": 0.21447,
    "h": 310.3
  },
  "luminance": 0.22096
}

Semantic roles & 50–950 ramp

primary
#B158E7
secondary
#C7E7B3
accent
#D70E5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158E7

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

Preview Lab → · Contrast checker → · Palette generator →

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