#B156B2#B156B2

#B156B2 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 59.8% C 0.165 H 327.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B156B2
RGBrgb(177, 86, 178)
HSLhsl(299, 37%, 52%)
HSVhsv(299, 52%, 70%)
CMYKcmyk(0.6%, 51.7%, 0%, 30.2%)
CIE-LABlab(50.94, 49.97, -32.74)
CIE-LCHlch(50.94, 59.74, 326.76°)
OKLaboklab(59.79% 0.1385 -0.09)
OKLCHoklch(59.79% 0.165 327)
XYZxyz(29.4946, 19.2187, 44.2669)
Luminance0.1922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B156B2 #57B256
analogous
#8356B2 #B156B2 #B25685
triadic
#B156B2 #B2B156 #56B2B1
tetradic
#B156B2 #B28356 #57B256 #5685B2
square
#B156B2 #B28356 #57B256 #5685B2
split-complementary
#B156B2 #85B256 #56B283
monochromatic
#612C61 #8A3F8B #B156B2 #C480C5 #D8AAD8

Accessibility & contrast

On white

4.34
#B156B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#B156B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B156B2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B156B2#FFFFFF#000000##000000
##B156B21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B5
Deuteranopia (green-blind)
#697DAF
Tritanopia (blue-blind)
#B6607C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b156b2;
/* rgb */ color: rgb(177, 86, 178);
/* oklch */ color: oklch(59.8% 0.165 327.0);
Tailwind
colors: {
  custom: {
    50: '#ca8ac9',
    500: '#b156b2',
    950: '#000000',
  },
}
SCSS
$custom: #b156b2;
$custom-light: #ca8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#b156b2",
  "rgb": {
    "r": 177,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 299.348,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59786,
    "c": 0.1652,
    "h": 327
  },
  "luminance": 0.19217
}

Semantic roles & 50–950 ramp

primary
#B156B2
secondary
#9EC69E
accent
#CD5A5C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B156B2

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

Preview Lab → · Contrast checker → · Palette generator →

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