#8F238C#8F238C

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

Color values

HEX#8F238C
RGBrgb(143, 35, 140)
HSLhsl(302, 61%, 35%)
HSVhsv(302, 76%, 56%)
CMYKcmyk(0%, 75.5%, 2.1%, 43.9%)
CIE-LABlab(35.86, 56.29, -34.11)
CIE-LCHlch(35.86, 65.82, 328.79°)
OKLaboklab(47.15% 0.1585 -0.0943)
OKLCHoklch(47.15% 0.184 329.2)
XYZxyz(16.6622, 8.9364, 25.6532)
Luminance0.0893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F238C #238F26
analogous
#5C238F #8F238C #8F2356
triadic
#8F238C #8C8F23 #238C8F
tetradic
#8F238C #8F5C23 #238F26 #23568F
square
#8F238C #8F5C23 #238F26 #23568F
split-complementary
#8F238C #568F23 #238F5C
monochromatic
#2D0B2C #5E175C #8F238C #C02FBC #D657D2

Accessibility & contrast

On white

7.53
#8F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F238C
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F238C#FFFFFF#000000##FFFFFF
##8F238C1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#435989
Tritanopia (blue-blind)
#943356
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f238c;
/* rgb */ color: rgb(143, 35, 140);
/* oklch */ color: oklch(47.1% 0.184 329.2);
Tailwind
colors: {
  custom: {
    50: '#b36aae',
    500: '#8f238c',
    950: '#000000',
  },
}
SCSS
$custom: #8f238c;
$custom-light: #b36aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f238c",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 301.667,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47146,
    "c": 0.18445,
    "h": 329.2
  },
  "luminance": 0.08935
}

Semantic roles & 50–950 ramp

primary
#8F238C
secondary
#54BA57
accent
#E44844
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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