#B159CA#B159CA

#B159CA is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.5% C 0.184 H 318.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#B159CA
RGBrgb(177, 89, 202)
HSLhsl(287, 52%, 57%)
HSVhsv(287, 56%, 79%)
CMYKcmyk(12.4%, 55.9%, 0%, 20.8%)
CIE-LABlab(52.68, 53.10, -43.86)
CIE-LCHlch(52.68, 68.87, 320.44°)
OKLaboklab(61.45% 0.1371 -0.1222)
OKLCHoklch(61.45% 0.184 318.3)
XYZxyz(32.3631, 20.7574, 58.1675)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B159CA #72CA59
analogous
#7959CA #B159CA #CA59AA
triadic
#B159CA #CAB159 #59CAB1
tetradic
#B159CA #CA7959 #72CA59 #59AACA
square
#B159CA #CA7959 #72CA59 #59AACA
split-complementary
#B159CA #AACA59 #59CA79
monochromatic
#6D2980 #9438AE #B159CA #C787D9 #DDB6E8

Accessibility & contrast

On white

4.08
#B159CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#B159CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B159CA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B159CA#FFFFFF#000000##000000
##B159CA1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4078CE
Deuteranopia (green-blind)
#5E81C7
Tritanopia (blue-blind)
#B16B89
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b159ca;
/* rgb */ color: rgb(177, 89, 202);
/* oklch */ color: oklch(61.5% 0.184 318.3);
Tailwind
colors: {
  custom: {
    50: '#cb8cda',
    500: '#b159ca',
    950: '#000000',
  },
}
SCSS
$custom: #b159ca;
$custom-light: #cb8cda;
$custom-dark: #000000;
JSON
{
  "hex": "#b159ca",
  "rgb": {
    "r": 177,
    "g": 89,
    "b": 202
  },
  "hsl": {
    "h": 286.726,
    "s": 51.598,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61452,
    "c": 0.1836,
    "h": 318.3
  },
  "luminance": 0.20756
}

Semantic roles & 50–950 ramp

primary
#B159CA
secondary
#B3D6A8
accent
#DB4D6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B159CA

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

Preview Lab → · Contrast checker → · Palette generator →

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