#8A318F#8A318F

#8A318F is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.9% C 0.167 H 325.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8A318F
RGBrgb(138, 49, 143)
HSLhsl(297, 49%, 38%)
HSVhsv(297, 66%, 56%)
CMYKcmyk(3.5%, 65.7%, 0%, 43.9%)
CIE-LABlab(37.09, 50.32, -34.06)
CIE-LCHlch(37.09, 60.76, 325.90°)
OKLaboklab(47.92% 0.1379 -0.0944)
OKLCHoklch(47.92% 0.167 325.6)
XYZxyz(16.5371, 9.5841, 26.9602)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A318F #368F31
analogous
#5B318F #8A318F #8F3165
triadic
#8A318F #8F8A31 #318F8A
tetradic
#8A318F #8F5B31 #368F31 #31658F
square
#8A318F #8F5B31 #368F31 #31658F
split-complementary
#8A318F #658F31 #318F5B
monochromatic
#321234 #5E2161 #8A318F #B641BD #C86DCD

Accessibility & contrast

On white

7.20
#8A318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A318F
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A318F#FFFFFF#000000##FFFFFF
##8A318F1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#445B8D
Tritanopia (blue-blind)
#8D3F5C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a318f;
/* rgb */ color: rgb(138, 49, 143);
/* oklch */ color: oklch(47.9% 0.167 325.6);
Tailwind
colors: {
  custom: {
    50: '#af70b0',
    500: '#8a318f',
    950: '#000000',
  },
}
SCSS
$custom: #8a318f;
$custom-light: #af70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a318f",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 296.809,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47919,
    "c": 0.16713,
    "h": 325.6
  },
  "luminance": 0.09583
}

Semantic roles & 50–950 ramp

primary
#8A318F
secondary
#6BB567
accent
#D94F57
background
#FBF7FA
surface
#F6EDF5
border
#D0C8CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A318F

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

Preview Lab → · Contrast checker → · Palette generator →

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