#8F38C9#8F38C9

#8F38C9 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.215 H 308.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8F38C9
RGBrgb(143, 56, 201)
HSLhsl(276, 57%, 50%)
HSVhsv(276, 72%, 79%)
CMYKcmyk(28.9%, 72.1%, 0%, 21.2%)
CIE-LABlab(42.59, 60.30, -59.71)
CIE-LCHlch(42.59, 84.86, 315.29°)
OKLaboklab(53.2% 0.1325 -0.1694)
OKLCHoklch(53.2% 0.215 308)
XYZxyz(23.2823, 12.8854, 56.5076)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38C9 #72C938
analogous
#4638C9 #8F38C9 #C938BA
triadic
#8F38C9 #C98F38 #38C98F
tetradic
#8F38C9 #C94638 #72C938 #38BAC9
square
#8F38C9 #C94638 #72C938 #38BAC9
split-complementary
#8F38C9 #BAC938 #38C946
monochromatic
#4B1D6A #6D2A9A #8F38C9 #AA68D6 #C598E3

Accessibility & contrast

On white

5.87
#8F38C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8F38C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38C9
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38C9#FFFFFF#000000##FFFFFF
##8F38C91.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0665C6
Tritanopia (blue-blind)
#865A7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8f38c9;
/* rgb */ color: rgb(143, 56, 201);
/* oklch */ color: oklch(53.2% 0.215 308.0);
Tailwind
colors: {
  custom: {
    50: '#b576da',
    500: '#8f38c9',
    950: '#000000',
  },
}
SCSS
$custom: #8f38c9;
$custom-light: #b576da;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38c9",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 276,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53195,
    "c": 0.21506,
    "h": 308
  },
  "luminance": 0.12885
}

Semantic roles & 50–950 ramp

primary
#8F38C9
secondary
#A8CF8E
accent
#E14785
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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