#8F38C3#8F38C3

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

Color values

HEX#8F38C3
RGBrgb(143, 56, 195)
HSLhsl(278, 55%, 49%)
HSVhsv(278, 71%, 76%)
CMYKcmyk(26.7%, 71.3%, 0%, 23.5%)
CIE-LABlab(42.17, 58.99, -56.90)
CIE-LCHlch(42.17, 81.96, 316.03°)
OKLaboklab(52.76% 0.1334 -0.1611)
OKLCHoklch(52.76% 0.209 309.6)
XYZxyz(22.5902, 12.6086, 52.8628)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38C3 #6CC338
analogous
#4A38C3 #8F38C3 #C338B2
triadic
#8F38C3 #C38F38 #38C38F
tetradic
#8F38C3 #C34A38 #6CC338 #38B2C3
square
#8F38C3 #C34A38 #6CC338 #38B2C3
split-complementary
#8F38C3 #B2C338 #38C34A
monochromatic
#491D64 #6C2A93 #8F38C3 #AA65D3 #C495E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F38C3#FFFFFF#000000##FFFFFF
##8F38C31.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)
#0060C7
Deuteranopia (green-blind)
#1A65C0
Tritanopia (blue-blind)
#88577A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f38c3;
/* rgb */ color: rgb(143, 56, 195);
/* oklch */ color: oklch(52.8% 0.209 309.6);
Tailwind
colors: {
  custom: {
    50: '#b476d6',
    500: '#8f38c3',
    950: '#000000',
  },
}
SCSS
$custom: #8f38c3;
$custom-light: #b476d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38c3",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 277.554,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52762,
    "c": 0.2092,
    "h": 309.6
  },
  "luminance": 0.12608
}

Semantic roles & 50–950 ramp

primary
#8F38C3
secondary
#A3CC8B
accent
#DF4981
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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