#B156CA#B156CA

#B156CA is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.1% C 0.188 H 318.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B156CA
RGBrgb(177, 86, 202)
HSLhsl(287, 52%, 56%)
HSVhsv(287, 57%, 79%)
CMYKcmyk(12.4%, 57.4%, 0%, 20.8%)
CIE-LABlab(52.14, 54.56, -44.72)
CIE-LCHlch(52.14, 70.55, 320.66°)
OKLaboklab(61.05% 0.1409 -0.1247)
OKLCHoklch(61.05% 0.188 318.5)
XYZxyz(32.1185, 20.2682, 58.0860)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B156CA #6FCA56
analogous
#7756CA #B156CA #CA56A9
triadic
#B156CA #CAB156 #56CAB1
tetradic
#B156CA #CA7756 #6FCA56 #56A9CA
square
#B156CA #CA7756 #6FCA56 #56A9CA
split-complementary
#B156CA #A9CA56 #56CA77
monochromatic
#6B287E #9336AD #B156CA #C785D9 #DCB3E7

Accessibility & contrast

On white

4.16
#B156CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#B156CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B156CA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B156CA#FFFFFF#000000##000000
##B156CA1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B76CE
Deuteranopia (green-blind)
#5C7FC7
Tritanopia (blue-blind)
#B16888
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b156ca;
/* rgb */ color: rgb(177, 86, 202);
/* oklch */ color: oklch(61.1% 0.188 318.5);
Tailwind
colors: {
  custom: {
    50: '#cb8ada',
    500: '#b156ca',
    950: '#000000',
  },
}
SCSS
$custom: #b156ca;
$custom-light: #cb8ada;
$custom-dark: #000000;
JSON
{
  "hex": "#b156ca",
  "rgb": {
    "r": 177,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 287.069,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61054,
    "c": 0.18816,
    "h": 318.5
  },
  "luminance": 0.20267
}

Semantic roles & 50–950 ramp

primary
#B156CA
secondary
#B0D6A6
accent
#DC4C6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B156CA

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

Preview Lab → · Contrast checker → · Palette generator →

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