#8F308C#8F308C

#8F308C is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.4% C 0.169 H 329.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8F308C
RGBrgb(143, 48, 140)
HSLhsl(302, 50%, 37%)
HSVhsv(302, 66%, 56%)
CMYKcmyk(0%, 66.4%, 2.1%, 43.9%)
CIE-LABlab(37.57, 51.46, -31.41)
CIE-LCHlch(37.57, 60.29, 328.60°)
OKLaboklab(48.37% 0.1447 -0.0866)
OKLCHoklch(48.37% 0.169 329.1)
XYZxyz(17.1181, 9.8482, 25.8051)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F308C #308F33
analogous
#63308F #8F308C #8F305C
triadic
#8F308C #8C8F30 #308C8F
tetradic
#8F308C #8F6330 #308F33 #305C8F
square
#8F308C #8F6330 #308F33 #305C8F
split-complementary
#8F308C #5C8F30 #308F63
monochromatic
#331132 #61215F #8F308C #BD3FB9 #CE6CCB

Accessibility & contrast

On white

7.07
#8F308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8F308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F308C
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F308C#FFFFFF#000000##FFFFFF
##8F308C1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508F
Deuteranopia (green-blind)
#495D89
Tritanopia (blue-blind)
#943C5A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8f308c;
/* rgb */ color: rgb(143, 48, 140);
/* oklch */ color: oklch(48.4% 0.169 329.1);
Tailwind
colors: {
  custom: {
    50: '#b370ae',
    500: '#8f308c',
    950: '#000000',
  },
}
SCSS
$custom: #8f308c;
$custom-light: #b370ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f308c",
  "rgb": {
    "r": 143,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 301.895,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48374,
    "c": 0.16867,
    "h": 329.1
  },
  "luminance": 0.09847
}

Semantic roles & 50–950 ramp

primary
#8F308C
secondary
#66B568
accent
#D9534F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F308C

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

Preview Lab → · Contrast checker → · Palette generator →

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