#8A308F#8A308F

#8A308F is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.169 H 325.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8A308F
RGBrgb(138, 48, 143)
HSLhsl(297, 50%, 37%)
HSVhsv(297, 66%, 56%)
CMYKcmyk(3.5%, 66.4%, 0%, 43.9%)
CIE-LABlab(36.93, 50.74, -34.30)
CIE-LCHlch(36.93, 61.25, 325.94°)
OKLaboklab(47.81% 0.1391 -0.0951)
OKLCHoklch(47.81% 0.169 325.6)
XYZxyz(16.4958, 9.5014, 26.9464)
Luminance0.0950 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A308F #358F30
analogous
#5A308F #8A308F #8F3065
triadic
#8A308F #8F8A30 #308F8A
tetradic
#8A308F #8F5A30 #358F30 #30658F
square
#8A308F #8F5A30 #358F30 #30658F
split-complementary
#8A308F #658F30 #308F5A
monochromatic
#321133 #5E2161 #8A308F #B63FBD #C86CCE

Accessibility & contrast

On white

7.24
#8A308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A308F
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A308F#FFFFFF#000000##FFFFFF
##8A308F1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5092
Deuteranopia (green-blind)
#435B8D
Tritanopia (blue-blind)
#8D3E5B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a308f;
/* rgb */ color: rgb(138, 48, 143);
/* oklch */ color: oklch(47.8% 0.169 325.6);
Tailwind
colors: {
  custom: {
    50: '#af70b0',
    500: '#8a308f',
    950: '#000000',
  },
}
SCSS
$custom: #8a308f;
$custom-light: #af70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a308f",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 296.842,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47808,
    "c": 0.1685,
    "h": 325.6
  },
  "luminance": 0.095
}

Semantic roles & 50–950 ramp

primary
#8A308F
secondary
#6AB566
accent
#D94F56
background
#FBF7FA
surface
#F6EDF5
border
#D0C8CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A308F

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

Preview Lab → · Contrast checker → · Palette generator →

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