#8F54B2#8F54B2

#8F54B2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.151 H 311.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8F54B2
RGBrgb(143, 84, 178)
HSLhsl(278, 38%, 51%)
HSVhsv(278, 53%, 70%)
CMYKcmyk(19.7%, 52.8%, 0%, 30.2%)
CIE-LABlab(46.17, 41.48, -40.56)
CIE-LCHlch(46.17, 58.01, 315.64°)
OKLaboklab(55.33% 0.1 -0.1134)
OKLCHoklch(55.33% 0.151 311.4)
XYZxyz(22.5325, 15.3951, 43.8954)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F54B2 #77B254
analogous
#6054B2 #8F54B2 #B254A6
triadic
#8F54B2 #B28F54 #54B28F
tetradic
#8F54B2 #B26054 #77B254 #54A6B2
square
#8F54B2 #B26054 #77B254 #54A6B2
split-complementary
#8F54B2 #A6B254 #54B260
monochromatic
#4D2B60 #6E3E8A #8F54B2 #AB7EC5 #C6A8D8

Accessibility & contrast

On white

5.15
#8F54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8F54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F54B2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F54B2#FFFFFF#000000##FFFFFF
##8F54B21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6AB5
Deuteranopia (green-blind)
#4E6FB0
Tritanopia (blue-blind)
#8B647B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f54b2;
/* rgb */ color: rgb(143, 84, 178);
/* oklch */ color: oklch(55.3% 0.151 311.4);
Tailwind
colors: {
  custom: {
    50: '#b286c9',
    500: '#8f54b2',
    950: '#000000',
  },
}
SCSS
$custom: #8f54b2;
$custom-light: #b286c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f54b2",
  "rgb": {
    "r": 143,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 277.66,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5533,
    "c": 0.15118,
    "h": 311.4
  },
  "luminance": 0.15395
}

Semantic roles & 50–950 ramp

primary
#8F54B2
secondary
#ACC69C
accent
#CE5A85
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8F54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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