#8A239E#8A239E

#8A239E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.197 H 320.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8A239E
RGBrgb(138, 35, 158)
HSLhsl(290, 64%, 38%)
HSVhsv(290, 78%, 62%)
CMYKcmyk(12.7%, 77.8%, 0%, 38%)
CIE-LABlab(36.13, 58.41, -44.72)
CIE-LCHlch(36.13, 73.56, 322.57°)
OKLaboklab(47.53% 0.1518 -0.1254)
OKLCHoklch(47.53% 0.197 320.4)
XYZxyz(17.2531, 9.0749, 33.1840)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A239E #379E23
analogous
#4C239E #8A239E #9E2374
triadic
#8A239E #9E8A23 #239E8A
tetradic
#8A239E #9E4C23 #379E23 #23749E
square
#8A239E #9E4C23 #379E23 #23749E
split-complementary
#8A239E #749E23 #239E4C
monochromatic
#320D3A #5E186C #8A239E #B62ED0 #C860DC

Accessibility & contrast

On white

7.46
#8A239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A239E
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A239E#FFFFFF#000000##FFFFFF
##8A239E1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#30589B
Tritanopia (blue-blind)
#8B3D60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a239e;
/* rgb */ color: rgb(138, 35, 158);
/* oklch */ color: oklch(47.5% 0.197 320.4);
Tailwind
colors: {
  custom: {
    50: '#b06abb',
    500: '#8a239e',
    950: '#000000',
  },
}
SCSS
$custom: #8a239e;
$custom-light: #b06abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a239e",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 290.244,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47527,
    "c": 0.19687,
    "h": 320.4
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#8A239E
secondary
#6DC15C
accent
#E7415C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A239E

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

Preview Lab → · Contrast checker → · Palette generator →

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