#8F5CB2#8F5CB2

#8F5CB2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.6% C 0.138 H 310.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8F5CB2
RGBrgb(143, 92, 178)
HSLhsl(276, 36%, 53%)
HSVhsv(276, 48%, 70%)
CMYKcmyk(19.7%, 48.3%, 0%, 30.2%)
CIE-LABlab(47.89, 37.04, -37.83)
CIE-LCHlch(47.89, 52.95, 314.39°)
OKLaboklab(56.61% 0.0887 -0.1055)
OKLCHoklch(56.61% 0.138 310)
XYZxyz(23.1892, 16.7087, 44.1143)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5CB2 #7FB25C
analogous
#645CB2 #8F5CB2 #B25CAA
triadic
#8F5CB2 #B28F5C #5CB28F
tetradic
#8F5CB2 #B2645C #7FB25C #5CAAB2
square
#8F5CB2 #B2645C #7FB25C #5CAAB2
split-complementary
#8F5CB2 #AAB25C #5CB264
monochromatic
#4F2F64 #6F438E #8F5CB2 #AC86C6 #C8AFD9

Accessibility & contrast

On white

4.84
#8F5CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8F5CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F5CB2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5CB2#FFFFFF#000000##FFFFFF
##8F5CB21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#8B6A7F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8f5cb2;
/* rgb */ color: rgb(143, 92, 178);
/* oklch */ color: oklch(56.6% 0.138 310.0);
Tailwind
colors: {
  custom: {
    50: '#b28bc9',
    500: '#8f5cb2',
    950: '#000000',
  },
}
SCSS
$custom: #8f5cb2;
$custom-light: #b28bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5cb2",
  "rgb": {
    "r": 143,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 275.581,
    "s": 35.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56606,
    "c": 0.13785,
    "h": 310
  },
  "luminance": 0.16708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F5CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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