#8F38D3#8F38D3

#8F38D3 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.9% C 0.225 H 305.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8F38D3
RGBrgb(143, 56, 211)
HSLhsl(274, 64%, 52%)
HSVhsv(274, 73%, 83%)
CMYKcmyk(32.2%, 73.5%, 0%, 17.3%)
CIE-LABlab(43.32, 62.52, -64.30)
CIE-LCHlch(43.32, 89.68, 314.19°)
OKLaboklab(53.94% 0.1307 -0.1829)
OKLCHoklch(53.94% 0.225 305.6)
XYZxyz(24.4971, 13.3713, 62.9058)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38D3 #7CD338
analogous
#4138D3 #8F38D3 #D338CA
triadic
#8F38D3 #D38F38 #38D38F
tetradic
#8F38D3 #D34138 #7CD338 #38CAD3
square
#8F38D3 #D34138 #7CD338 #38CAD3
split-complementary
#8F38D3 #CAD338 #38D341
monochromatic
#4E1A76 #6F25A9 #8F38D3 #AB6ADE #C79CE9

Accessibility & contrast

On white

5.72
#8F38D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8F38D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38D3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38D3#FFFFFF#000000##FFFFFF
##8F38D31.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#835E83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f38d3;
/* rgb */ color: rgb(143, 56, 211);
/* oklch */ color: oklch(53.9% 0.225 305.6);
Tailwind
colors: {
  custom: {
    50: '#b577e1',
    500: '#8f38d3',
    950: '#000000',
  },
}
SCSS
$custom: #8f38d3;
$custom-light: #b577e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38d3",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 273.677,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53939,
    "c": 0.22482,
    "h": 305.6
  },
  "luminance": 0.13371
}

Semantic roles & 50–950 ramp

primary
#8F38D3
secondary
#AFD592
accent
#E7418A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F38D3

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

Preview Lab → · Contrast checker → · Palette generator →

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