#8F38D4#8F38D4

#8F38D4 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.0% C 0.226 H 305.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8F38D4
RGBrgb(143, 56, 212)
HSLhsl(273, 64%, 53%)
HSVhsv(273, 74%, 83%)
CMYKcmyk(32.5%, 73.6%, 0%, 16.9%)
CIE-LABlab(43.39, 62.74, -64.76)
CIE-LCHlch(43.39, 90.17, 314.09°)
OKLaboklab(54.01% 0.1305 -0.1842)
OKLCHoklch(54.01% 0.226 305.3)
XYZxyz(24.6229, 13.4216, 63.5680)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38D4 #7DD438
analogous
#4138D4 #8F38D4 #D438CB
triadic
#8F38D4 #D48F38 #38D48F
tetradic
#8F38D4 #D44138 #7DD438 #38CBD4
square
#8F38D4 #D44138 #7DD438 #38CBD4
split-complementary
#8F38D4 #CBD438 #38D441
monochromatic
#4E1A78 #6F25AA #8F38D4 #AB6ADF #C89DEA

Accessibility & contrast

On white

5.70
#8F38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8F38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38D4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38D4#FFFFFF#000000##FFFFFF
##8F38D41.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#825E83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f38d4;
/* rgb */ color: rgb(143, 56, 212);
/* oklch */ color: oklch(54.0% 0.226 305.3);
Tailwind
colors: {
  custom: {
    50: '#b577e2',
    500: '#8f38d4',
    950: '#000000',
  },
}
SCSS
$custom: #8f38d4;
$custom-light: #b577e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38d4",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 273.462,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.2258,
    "h": 305.3
  },
  "luminance": 0.13421
}

Semantic roles & 50–950 ramp

primary
#8F38D4
secondary
#B0D692
accent
#E7408A
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8F38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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