#8F38C2#8F38C2

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

Color values

HEX#8F38C2
RGBrgb(143, 56, 194)
HSLhsl(278, 55%, 49%)
HSVhsv(278, 71%, 76%)
CMYKcmyk(26.3%, 71.1%, 0%, 23.9%)
CIE-LABlab(42.10, 58.78, -56.43)
CIE-LCHlch(42.10, 81.48, 316.17°)
OKLaboklab(52.69% 0.1335 -0.1598)
OKLCHoklch(52.69% 0.208 309.9)
XYZxyz(22.4776, 12.5635, 52.2694)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38C2 #6BC238
analogous
#4A38C2 #8F38C2 #C238B0
triadic
#8F38C2 #C28F38 #38C28F
tetradic
#8F38C2 #C24A38 #6BC238 #38B0C2
square
#8F38C2 #C24A38 #6BC238 #38B0C2
split-complementary
#8F38C2 #B0C238 #38C24A
monochromatic
#491D63 #6C2A93 #8F38C2 #AA65D2 #C494E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F38C2#FFFFFF#000000##FFFFFF
##8F38C21.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)
#0060C6
Deuteranopia (green-blind)
#1C65BF
Tritanopia (blue-blind)
#885779
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f38c2;
/* rgb */ color: rgb(143, 56, 194);
/* oklch */ color: oklch(52.7% 0.208 309.9);
Tailwind
colors: {
  custom: {
    50: '#b476d5',
    500: '#8f38c2',
    950: '#000000',
  },
}
SCSS
$custom: #8f38c2;
$custom-light: #b476d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38c2",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 277.826,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5269,
    "c": 0.20823,
    "h": 309.9
  },
  "luminance": 0.12563
}

Semantic roles & 50–950 ramp

primary
#8F38C2
secondary
#A2CB8A
accent
#DF4980
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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