#8F34CA#8F34CA

#8F34CA is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.9% C 0.220 H 308.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8F34CA
RGBrgb(143, 52, 202)
HSLhsl(276, 59%, 50%)
HSVhsv(276, 74%, 79%)
CMYKcmyk(29.2%, 74.3%, 0%, 20.8%)
CIE-LABlab(42.09, 62.14, -61.09)
CIE-LCHlch(42.09, 87.14, 315.49°)
OKLaboklab(52.87% 0.1361 -0.1734)
OKLCHoklch(52.87% 0.22 308.1)
XYZxyz(23.2141, 12.5603, 57.0671)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F34CA #6FCA34
analogous
#4434CA #8F34CA #CA34BA
triadic
#8F34CA #CA8F34 #34CA8F
tetradic
#8F34CA #CA4434 #6FCA34 #34BACA
square
#8F34CA #CA4434 #6FCA34 #34BACA
split-complementary
#8F34CA #BACA34 #34CA44
monochromatic
#4A1B69 #6D2799 #8F34CA #AA64D7 #C595E4

Accessibility & contrast

On white

5.98
#8F34CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8F34CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F34CA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F34CA#FFFFFF#000000##FFFFFF
##8F34CA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#86587D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f34ca;
/* rgb */ color: rgb(143, 52, 202);
/* oklch */ color: oklch(52.9% 0.220 308.1);
Tailwind
colors: {
  custom: {
    50: '#b574db',
    500: '#8f34ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f34ca;
$custom-light: #b574db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f34ca",
  "rgb": {
    "r": 143,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 276.4,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.22046,
    "h": 308.1
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#8F34CA
secondary
#A6CF8B
accent
#E24683
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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