#8A238A#8A238A

#8A238A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.180 H 328.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8A238A
RGBrgb(138, 35, 138)
HSLhsl(300, 60%, 34%)
HSVhsv(300, 75%, 54%)
CMYKcmyk(0%, 74.6%, 0%, 45.9%)
CIE-LABlab(34.89, 54.83, -34.48)
CIE-LCHlch(34.89, 64.77, 327.84°)
OKLaboklab(46.25% 0.153 -0.0955)
OKLCHoklch(46.25% 0.18 328)
XYZxyz(15.6695, 8.4415, 24.8439)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A238A #238A23
analogous
#57238A #8A238A #8A2357
triadic
#8A238A #8A8A23 #238A8A
tetradic
#8A238A #8A5723 #238A23 #23578A
square
#8A238A #8A5723 #238A23 #23578A
split-complementary
#8A238A #578A23 #238A57
monochromatic
#280A28 #591759 #8A238A #BB2FBB #D454D4

Accessibility & contrast

On white

7.81
#8A238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A238A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A238A#FFFFFF#000000##FFFFFF
##8A238A1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E498D
Deuteranopia (green-blind)
#3F5787
Tritanopia (blue-blind)
#8E3355
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a238a;
/* rgb */ color: rgb(138, 35, 138);
/* oklch */ color: oklch(46.2% 0.180 328.0);
Tailwind
colors: {
  custom: {
    50: '#b069ac',
    500: '#8a238a',
    950: '#000000',
  },
}
SCSS
$custom: #8a238a;
$custom-light: #b069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a238a",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46245,
    "c": 0.18036,
    "h": 328
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#8A238A
secondary
#51B751
accent
#E34545
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A238A

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

Preview Lab → · Contrast checker → · Palette generator →

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