#8F238E#8F238E

#8F238E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.186 H 328.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#8F238E
RGBrgb(143, 35, 142)
HSLhsl(301, 61%, 35%)
HSVhsv(301, 76%, 56%)
CMYKcmyk(0%, 75.5%, 0.7%, 43.9%)
CIE-LABlab(35.98, 56.63, -35.16)
CIE-LCHlch(35.98, 66.65, 328.17°)
OKLaboklab(47.27% 0.1585 -0.0974)
OKLCHoklch(47.27% 0.186 328.4)
XYZxyz(16.8110, 8.9959, 26.4369)
Luminance0.0900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F238E #238F24
analogous
#5A238F #8F238E #8F2358
triadic
#8F238E #8E8F23 #238E8F
tetradic
#8F238E #8F5A23 #238F24 #23588F
square
#8F238E #8F5A23 #238F24 #23588F
split-complementary
#8F238E #588F23 #238F5A
monochromatic
#2D0B2C #5E175D #8F238E #C02FBF #D657D5

Accessibility & contrast

On white

7.50
#8F238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8F238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F238E
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F238E#FFFFFF#000000##FFFFFF
##8F238E1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C91
Deuteranopia (green-blind)
#42598B
Tritanopia (blue-blind)
#943457
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8f238e;
/* rgb */ color: rgb(143, 35, 142);
/* oklch */ color: oklch(47.3% 0.186 328.4);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8f238e',
    950: '#000000',
  },
}
SCSS
$custom: #8f238e;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f238e",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 300.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47265,
    "c": 0.18602,
    "h": 328.4
  },
  "luminance": 0.08995
}

Semantic roles & 50–950 ramp

primary
#8F238E
secondary
#54BA55
accent
#E44544
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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