#8F5BB2#8F5BB2

#8F5BB2 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.4% C 0.140 H 310.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8F5BB2
RGBrgb(143, 91, 178)
HSLhsl(276, 36%, 53%)
HSVhsv(276, 49%, 70%)
CMYKcmyk(19.7%, 48.9%, 0%, 30.2%)
CIE-LABlab(47.67, 37.60, -38.18)
CIE-LCHlch(47.67, 53.59, 314.56°)
OKLaboklab(56.44% 0.0901 -0.1065)
OKLCHoklch(56.44% 0.14 310.2)
XYZxyz(23.1032, 16.5366, 44.0857)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5BB2 #7EB25B
analogous
#635BB2 #8F5BB2 #B25BAA
triadic
#8F5BB2 #B28F5B #5BB28F
tetradic
#8F5BB2 #B2635B #7EB25B #5BAAB2
square
#8F5BB2 #B2635B #7EB25B #5BAAB2
split-complementary
#8F5BB2 #AAB25B #5BB263
monochromatic
#4E2F64 #6F428D #8F5BB2 #AB85C6 #C8AED9

Accessibility & contrast

On white

4.88
#8F5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8F5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F5BB2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5BB2#FFFFFF#000000##FFFFFF
##8F5BB21.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466FB5
Deuteranopia (green-blind)
#5472B0
Tritanopia (blue-blind)
#8B697E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8f5bb2;
/* rgb */ color: rgb(143, 91, 178);
/* oklch */ color: oklch(56.4% 0.140 310.2);
Tailwind
colors: {
  custom: {
    50: '#b28bc9',
    500: '#8f5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #8f5bb2;
$custom-light: #b28bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5bb2",
  "rgb": {
    "r": 143,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 275.862,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56442,
    "c": 0.13954,
    "h": 310.2
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#8F5BB2
secondary
#B1C7A2
accent
#CC5C89
background
#FBF8FC
surface
#F6F0F8
border
#D0CBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #8F5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

#8F5BB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva