#8F38D1#8F38D1

#8F38D1 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.8% C 0.223 H 306.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8F38D1
RGBrgb(143, 56, 209)
HSLhsl(274, 62%, 52%)
HSVhsv(274, 73%, 82%)
CMYKcmyk(31.6%, 73.2%, 0%, 18%)
CIE-LABlab(43.17, 62.07, -63.39)
CIE-LCHlch(43.17, 88.72, 314.40°)
OKLaboklab(53.79% 0.1311 -0.1802)
OKLCHoklch(53.79% 0.223 306)
XYZxyz(24.2480, 13.2717, 61.5935)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38D1 #7AD138
analogous
#4338D1 #8F38D1 #D138C6
triadic
#8F38D1 #D18F38 #38D18F
tetradic
#8F38D1 #D14338 #7AD138 #38C6D1
square
#8F38D1 #D14338 #7AD138 #38C6D1
split-complementary
#8F38D1 #C6D138 #38D143
monochromatic
#4D1B74 #6F26A6 #8F38D1 #AB6ADC #C79BE8

Accessibility & contrast

On white

5.75
#8F38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8F38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38D1
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38D1#FFFFFF#000000##FFFFFF
##8F38D11.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#835D82
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f38d1;
/* rgb */ color: rgb(143, 56, 209);
/* oklch */ color: oklch(53.8% 0.223 306.0);
Tailwind
colors: {
  custom: {
    50: '#b577e0',
    500: '#8f38d1',
    950: '#000000',
  },
}
SCSS
$custom: #8f38d1;
$custom-light: #b577e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38d1",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 274.118,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53788,
    "c": 0.22287,
    "h": 306
  },
  "luminance": 0.13271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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