#B159EC#B159EC

#B159EC is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.5% C 0.218 H 309.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B159EC
RGBrgb(177, 89, 236)
HSLhsl(276, 79%, 64%)
HSVhsv(276, 62%, 93%)
CMYKcmyk(25%, 62.3%, 0%, 7.5%)
CIE-LABlab(54.60, 60.23, -60.05)
CIE-LCHlch(54.60, 85.05, 315.09°)
OKLaboklab(63.47% 0.1375 -0.1695)
OKLCHoklch(63.47% 0.218 309.1)
XYZxyz(36.8412, 22.5486, 81.7522)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B159EC #94EC59
analogous
#6759EC #B159EC #EC59DE
triadic
#B159EC #ECB159 #59ECB1
tetradic
#B159EC #EC6759 #94EC59 #59DEEC
square
#B159EC #EC6759 #94EC59 #59DEEC
split-complementary
#B159EC #DEEC59 #59EC67
monochromatic
#7515B6 #9722E6 #B159EC #CB90F2 #E5C7F9

Accessibility & contrast

On white

3.81
#B159EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#B159EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B159EC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B159EC#FFFFFF#000000##000000
##B159EC1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#017FF1
Deuteranopia (green-blind)
#4384E9
Tritanopia (blue-blind)
#A9769B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b159ec;
/* rgb */ color: rgb(177, 89, 236);
/* oklch */ color: oklch(63.5% 0.218 309.1);
Tailwind
colors: {
  custom: {
    50: '#cc8df3',
    500: '#b159ec',
    950: '#000000',
  },
}
SCSS
$custom: #b159ec;
$custom-light: #cc8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#b159ec",
  "rgb": {
    "r": 177,
    "g": 89,
    "b": 236
  },
  "hsl": {
    "h": 275.918,
    "s": 79.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.6347,
    "c": 0.21823,
    "h": 309.1
  },
  "luminance": 0.22548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B159EC

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

Preview Lab → · Contrast checker → · Palette generator →

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