#8E308F#8E308F

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

Color values

HEX#8E308F
RGBrgb(142, 48, 143)
HSLhsl(299, 50%, 37%)
HSVhsv(299, 66%, 56%)
CMYKcmyk(0.7%, 66.4%, 0%, 43.9%)
CIE-LABlab(37.57, 51.74, -33.25)
CIE-LCHlch(37.57, 61.51, 327.27°)
OKLaboklab(48.4% 0.1438 -0.092)
OKLCHoklch(48.4% 0.171 327.4)
XYZxyz(17.1699, 9.8490, 26.9780)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E308F #318F30
analogous
#5E308F #8E308F #8F3061
triadic
#8E308F #8F8E30 #308F8E
tetradic
#8E308F #8F5E30 #318F30 #30618F
square
#8E308F #8F5E30 #318F30 #30618F
split-complementary
#8E308F #618F30 #308F5E
monochromatic
#331133 #612161 #8E308F #BB3FBD #CD6CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E308F#FFFFFF#000000##FFFFFF
##8E308F1.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)
#225192
Deuteranopia (green-blind)
#475D8C
Tritanopia (blue-blind)
#923D5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e308f;
/* rgb */ color: rgb(142, 48, 143);
/* oklch */ color: oklch(48.4% 0.171 327.4);
Tailwind
colors: {
  custom: {
    50: '#b270b0',
    500: '#8e308f',
    950: '#000000',
  },
}
SCSS
$custom: #8e308f;
$custom-light: #b270b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e308f",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 299.368,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48396,
    "c": 0.17066,
    "h": 327.4
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

primary
#8E308F
secondary
#67B566
accent
#D94F50
background
#FBF7FA
surface
#F6EDF5
border
#D0C8CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E308F

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

Preview Lab → · Contrast checker → · Palette generator →

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