#8F38D2#8F38D2

#8F38D2 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.9% C 0.224 H 305.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8F38D2
RGBrgb(143, 56, 210)
HSLhsl(274, 63%, 52%)
HSVhsv(274, 73%, 82%)
CMYKcmyk(31.9%, 73.3%, 0%, 17.6%)
CIE-LABlab(43.24, 62.30, -63.85)
CIE-LCHlch(43.24, 89.20, 314.30°)
OKLaboklab(53.86% 0.1309 -0.1816)
OKLCHoklch(53.86% 0.224 305.8)
XYZxyz(24.3722, 13.3213, 62.2476)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38D2 #7BD238
analogous
#4238D2 #8F38D2 #D238C8
triadic
#8F38D2 #D28F38 #38D28F
tetradic
#8F38D2 #D24238 #7BD238 #38C8D2
square
#8F38D2 #D24238 #7BD238 #38C8D2
split-complementary
#8F38D2 #C8D238 #38D242
monochromatic
#4E1A75 #6F26A7 #8F38D2 #AB6ADD #C79CE9

Accessibility & contrast

On white

5.73
#8F38D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8F38D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38D2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38D2#FFFFFF#000000##FFFFFF
##8F38D21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#835D82
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f38d2;
/* rgb */ color: rgb(143, 56, 210);
/* oklch */ color: oklch(53.9% 0.224 305.8);
Tailwind
colors: {
  custom: {
    50: '#b577e1',
    500: '#8f38d2',
    950: '#000000',
  },
}
SCSS
$custom: #8f38d2;
$custom-light: #b577e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38d2",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 273.896,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53863,
    "c": 0.22384,
    "h": 305.8
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

primary
#8F38D2
secondary
#AFD591
accent
#E64289
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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