#8F34C6#8F34C6

#8F34C6 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.6% C 0.217 H 309.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8F34C6
RGBrgb(143, 52, 198)
HSLhsl(277, 58%, 49%)
HSVhsv(277, 74%, 78%)
CMYKcmyk(27.8%, 73.7%, 0%, 22.4%)
CIE-LABlab(41.80, 61.28, -59.24)
CIE-LCHlch(41.80, 85.23, 315.97°)
OKLaboklab(52.57% 0.1368 -0.168)
OKLCHoklch(52.57% 0.217 309.2)
XYZxyz(22.7467, 12.3733, 54.6051)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F34C6 #6BC634
analogous
#4634C6 #8F34C6 #C634B4
triadic
#8F34C6 #C68F34 #34C68F
tetradic
#8F34C6 #C64634 #6BC634 #34B4C6
square
#8F34C6 #C64634 #6BC634 #34B4C6
split-complementary
#8F34C6 #B4C634 #34C646
monochromatic
#491B65 #6C2796 #8F34C6 #AA62D6 #C492E2

Accessibility & contrast

On white

6.04
#8F34C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8F34C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F34C6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F34C6#FFFFFF#000000##FFFFFF
##8F34C61.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#0664C3
Tritanopia (blue-blind)
#87567B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f34c6;
/* rgb */ color: rgb(143, 52, 198);
/* oklch */ color: oklch(52.6% 0.217 309.2);
Tailwind
colors: {
  custom: {
    50: '#b574d8',
    500: '#8f34c6',
    950: '#000000',
  },
}
SCSS
$custom: #8f34c6;
$custom-light: #b574d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f34c6",
  "rgb": {
    "r": 143,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 277.397,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5257,
    "c": 0.21664,
    "h": 309.2
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#8F34C6
secondary
#A2CD89
accent
#E24681
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120915
muted
#817B83

Preview Lab

Preview with #8F34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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