#B159CB#B159CB

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

Color values

HEX#B159CB
RGBrgb(177, 89, 203)
HSLhsl(286, 52%, 57%)
HSVhsv(286, 56%, 80%)
CMYKcmyk(12.8%, 56.2%, 0%, 20.4%)
CIE-LABlab(52.74, 53.30, -44.35)
CIE-LCHlch(52.74, 69.34, 320.23°)
OKLaboklab(61.51% 0.1371 -0.1236)
OKLCHoklch(61.51% 0.185 318)
XYZxyz(32.4818, 20.8049, 58.7931)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B159CB #73CB59
analogous
#7859CB #B159CB #CB59AC
triadic
#B159CB #CBB159 #59CBB1
tetradic
#B159CB #CB7859 #73CB59 #59ACCB
square
#B159CB #CB7859 #73CB59 #59ACCB
split-complementary
#B159CB #ACCB59 #59CB78
monochromatic
#6D2881 #9437B0 #B159CB #C788DA #DDB6E8

Accessibility & contrast

On white

4.07
#B159CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#B159CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B159CB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B159CB#FFFFFF#000000##000000
##B159CB1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F78CF
Deuteranopia (green-blind)
#5E81C8
Tritanopia (blue-blind)
#B16B8A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b159cb;
/* rgb */ color: rgb(177, 89, 203);
/* oklch */ color: oklch(61.5% 0.185 318.0);
Tailwind
colors: {
  custom: {
    50: '#cb8cdb',
    500: '#b159cb',
    950: '#000000',
  },
}
SCSS
$custom: #b159cb;
$custom-light: #cb8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b159cb",
  "rgb": {
    "r": 177,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 286.316,
    "s": 52.294,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61508,
    "c": 0.1846,
    "h": 318
  },
  "luminance": 0.20804
}

Semantic roles & 50–950 ramp

primary
#B159CB
secondary
#B3D7A9
accent
#DC4C6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B159CB

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

Preview Lab → · Contrast checker → · Palette generator →

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