#8F34CB#8F34CB

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

Color values

HEX#8F34CB
RGBrgb(143, 52, 203)
HSLhsl(276, 59%, 50%)
HSVhsv(276, 74%, 80%)
CMYKcmyk(29.6%, 74.4%, 0%, 20.4%)
CIE-LABlab(42.17, 62.36, -61.55)
CIE-LCHlch(42.17, 87.62, 315.37°)
OKLaboklab(52.94% 0.1359 -0.1748)
OKLCHoklch(52.94% 0.221 307.9)
XYZxyz(23.3329, 12.6078, 57.6927)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F34CB #70CB34
analogous
#4334CB #8F34CB #CB34BC
triadic
#8F34CB #CB8F34 #34CB8F
tetradic
#8F34CB #CB4334 #70CB34 #34BCCB
square
#8F34CB #CB4334 #70CB34 #34BCCB
split-complementary
#8F34CB #BCCB34 #34CB43
monochromatic
#4A1B6A #6D289A #8F34CB #AA65D7 #C595E4

Accessibility & contrast

On white

5.96
#8F34CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8F34CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F34CB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F34CB#FFFFFF#000000##FFFFFF
##8F34CB1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#85587D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f34cb;
/* rgb */ color: rgb(143, 52, 203);
/* oklch */ color: oklch(52.9% 0.221 307.9);
Tailwind
colors: {
  custom: {
    50: '#b575dc',
    500: '#8f34cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f34cb;
$custom-light: #b575dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f34cb",
  "rgb": {
    "r": 143,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 276.159,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.22141,
    "h": 307.9
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

primary
#8F34CB
secondary
#A6CF8C
accent
#E24584
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F34CB

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

Preview Lab → · Contrast checker → · Palette generator →

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