#8F338E#8F338E

#8F338E is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.8% C 0.166 H 328.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8F338E
RGBrgb(143, 51, 142)
HSLhsl(301, 47%, 38%)
HSVhsv(301, 64%, 56%)
CMYKcmyk(0%, 64.3%, 0.7%, 43.9%)
CIE-LABlab(38.13, 50.55, -31.75)
CIE-LCHlch(38.13, 59.69, 327.87°)
OKLaboklab(48.82% 0.1413 -0.0876)
OKLCHoklch(48.82% 0.166 328.2)
XYZxyz(17.3938, 10.1615, 26.6312)
Luminance0.1016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F338E #338F34
analogous
#62338F #8F338E #8F3360
triadic
#8F338E #8E8F33 #338E8F
tetradic
#8F338E #8F6233 #338F34 #33608F
square
#8F338E #8F6233 #338F34 #33608F
split-complementary
#8F338E #608F33 #338F62
monochromatic
#351334 #622361 #8F338E #BC43BB #CC70CB

Accessibility & contrast

On white

6.93
#8F338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8F338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F338E
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F338E#FFFFFF#000000##FFFFFF
##8F338E1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#4A5E8C
Tritanopia (blue-blind)
#943F5C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f338e;
/* rgb */ color: rgb(143, 51, 142);
/* oklch */ color: oklch(48.8% 0.166 328.2);
Tailwind
colors: {
  custom: {
    50: '#b372af',
    500: '#8f338e',
    950: '#000000',
  },
}
SCSS
$custom: #8f338e;
$custom-light: #b372af;
$custom-dark: #000000;
JSON
{
  "hex": "#8f338e",
  "rgb": {
    "r": 143,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 300.652,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48815,
    "c": 0.16623,
    "h": 328.2
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#8F338E
secondary
#6AB46A
accent
#D75251
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F338E

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

Preview Lab → · Contrast checker → · Palette generator →

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