#8F338A#8F338A

#8F338A is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.6% C 0.163 H 330.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8F338A
RGBrgb(143, 51, 138)
HSLhsl(303, 47%, 38%)
HSVhsv(303, 64%, 56%)
CMYKcmyk(0%, 64.3%, 3.5%, 43.9%)
CIE-LABlab(37.92, 49.84, -29.63)
CIE-LCHlch(37.92, 57.98, 329.27°)
OKLaboklab(48.6% 0.1409 -0.0815)
OKLCHoklch(48.6% 0.163 330)
XYZxyz(17.0988, 10.0435, 25.0778)
Luminance0.1004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F338A #338F38
analogous
#66338F #8F338A #8F335C
triadic
#8F338A #8A8F33 #338A8F
tetradic
#8F338A #8F6633 #338F38 #335C8F
square
#8F338A #8F6633 #338F38 #335C8F
split-complementary
#8F338A #5C8F33 #338F66
monochromatic
#351333 #62235E #8F338A #BC43B5 #CC70C7

Accessibility & contrast

On white

6.98
#8F338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8F338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F338A
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F338A#FFFFFF#000000##FFFFFF
##8F338A1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#4C5E88
Tritanopia (blue-blind)
#943D5A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f338a;
/* rgb */ color: rgb(143, 51, 138);
/* oklch */ color: oklch(48.6% 0.163 330.0);
Tailwind
colors: {
  custom: {
    50: '#b372ac',
    500: '#8f338a',
    950: '#000000',
  },
}
SCSS
$custom: #8f338a;
$custom-light: #b372ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f338a",
  "rgb": {
    "r": 143,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 303.261,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48595,
    "c": 0.16281,
    "h": 330
  },
  "luminance": 0.10042
}

Semantic roles & 50–950 ramp

primary
#8F338A
secondary
#6AB46E
accent
#D75851
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F338A

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

Preview Lab → · Contrast checker → · Palette generator →

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