#8F4BC2#8F4BC2

#8F4BC2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.183 H 307.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8F4BC2
RGBrgb(143, 75, 194)
HSLhsl(274, 49%, 53%)
HSVhsv(274, 61%, 76%)
CMYKcmyk(26.3%, 61.3%, 0%, 23.9%)
CIE-LABlab(45.31, 49.89, -51.25)
CIE-LCHlch(45.31, 71.53, 314.23°)
OKLaboklab(55% 0.1122 -0.1447)
OKLCHoklch(55% 0.183 307.8)
XYZxyz(23.5794, 14.7672, 52.6367)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4BC2 #7EC24B
analogous
#534BC2 #8F4BC2 #C24BB9
triadic
#8F4BC2 #C28F4B #4BC28F
tetradic
#8F4BC2 #C2534B #7EC24B #4BB9C2
square
#8F4BC2 #C2534B #7EC24B #4BB9C2
split-complementary
#8F4BC2 #B9C24B #4BC253
monochromatic
#4E256D #6F359B #8F4BC2 #AB79D1 #C8A6E1

Accessibility & contrast

On white

5.31
#8F4BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8F4BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4BC2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4BC2#FFFFFF#000000##FFFFFF
##8F4BC21.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1069C6
Deuteranopia (green-blind)
#376CBF
Tritanopia (blue-blind)
#87637F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f4bc2;
/* rgb */ color: rgb(143, 75, 194);
/* oklch */ color: oklch(55.0% 0.183 307.8);
Tailwind
colors: {
  custom: {
    50: '#b381d5',
    500: '#8f4bc2',
    950: '#000000',
  },
}
SCSS
$custom: #8f4bc2;
$custom-light: #b381d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4bc2",
  "rgb": {
    "r": 143,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 274.286,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55002,
    "c": 0.18308,
    "h": 307.8
  },
  "luminance": 0.14767
}

Semantic roles & 50–950 ramp

primary
#8F4BC2
secondary
#B1CE9B
accent
#D94F8A
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8F4BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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