#8F238B#8F238B

#8F238B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.184 H 329.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8F238B
RGBrgb(143, 35, 139)
HSLhsl(302, 61%, 35%)
HSVhsv(302, 76%, 56%)
CMYKcmyk(0%, 75.5%, 2.8%, 43.9%)
CIE-LABlab(35.80, 56.13, -33.58)
CIE-LCHlch(35.80, 65.41, 329.11°)
OKLaboklab(47.09% 0.1585 -0.0928)
OKLCHoklch(47.09% 0.184 329.6)
XYZxyz(16.5888, 8.9071, 25.2666)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F238B #238F27
analogous
#5D238F #8F238B #8F2355
triadic
#8F238B #8B8F23 #238B8F
tetradic
#8F238B #8F5D23 #238F27 #23558F
square
#8F238B #8F5D23 #238F27 #23558F
split-complementary
#8F238B #558F23 #238F5D
monochromatic
#2D0B2B #5E175B #8F238B #C02FBB #D657D1

Accessibility & contrast

On white

7.55
#8F238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8F238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F238B
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F238B#FFFFFF#000000##FFFFFF
##8F238B1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#435988
Tritanopia (blue-blind)
#943255
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f238b;
/* rgb */ color: rgb(143, 35, 139);
/* oklch */ color: oklch(47.1% 0.184 329.6);
Tailwind
colors: {
  custom: {
    50: '#b36aad',
    500: '#8f238b',
    950: '#000000',
  },
}
SCSS
$custom: #8f238b;
$custom-light: #b36aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8f238b",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 302.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47087,
    "c": 0.18367,
    "h": 329.6
  },
  "luminance": 0.08906
}

Semantic roles & 50–950 ramp

primary
#8F238B
secondary
#54BA58
accent
#E44A44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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