#B159E7#B159E7

#B159E7 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.2% C 0.213 H 310.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B159E7
RGBrgb(177, 89, 231)
HSLhsl(277, 75%, 63%)
HSVhsv(277, 61%, 91%)
CMYKcmyk(23.4%, 61.5%, 0%, 9.4%)
CIE-LABlab(54.30, 59.15, -57.72)
CIE-LCHlch(54.30, 82.65, 315.70°)
OKLaboklab(63.16% 0.1377 -0.1627)
OKLCHoklch(63.16% 0.213 310.2)
XYZxyz(36.1249, 22.2621, 77.9798)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B159E7 #8FE759
analogous
#6A59E7 #B159E7 #E759D6
triadic
#B159E7 #E7B159 #59E7B1
tetradic
#B159E7 #E76A59 #8FE759 #59D6E7
square
#B159E7 #E76A59 #8FE759 #59D6E7
split-complementary
#B159E7 #D6E759 #59E76A
monochromatic
#7419AD #9824DF #B159E7 #CA8EEF #E3C4F6

Accessibility & contrast

On white

3.85
#B159E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#B159E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B159E7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B159E7#FFFFFF#000000##000000
##B159E71.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#177EEB
Deuteranopia (green-blind)
#4883E4
Tritanopia (blue-blind)
#AA7598
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b159e7;
/* rgb */ color: rgb(177, 89, 231);
/* oklch */ color: oklch(63.2% 0.213 310.2);
Tailwind
colors: {
  custom: {
    50: '#cc8def',
    500: '#b159e7',
    950: '#000000',
  },
}
SCSS
$custom: #b159e7;
$custom-light: #cc8def;
$custom-dark: #000000;
JSON
{
  "hex": "#b159e7",
  "rgb": {
    "r": 177,
    "g": 89,
    "b": 231
  },
  "hsl": {
    "h": 277.183,
    "s": 74.737,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63157,
    "c": 0.2131,
    "h": 310.2
  },
  "luminance": 0.22261
}

Semantic roles & 50–950 ramp

primary
#B159E7
secondary
#C8E8B4
accent
#D70F5B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B159E7

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

Preview Lab → · Contrast checker → · Palette generator →

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