#8A239B#8A239B

#8A239B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.194 H 321.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A239B
RGBrgb(138, 35, 155)
HSLhsl(292, 63%, 37%)
HSVhsv(292, 77%, 61%)
CMYKcmyk(11%, 77.4%, 0%, 39.2%)
CIE-LABlab(35.93, 57.86, -43.21)
CIE-LCHlch(35.93, 72.21, 323.24°)
OKLaboklab(47.33% 0.1521 -0.121)
OKLCHoklch(47.33% 0.194 321.5)
XYZxyz(16.9980, 8.9728, 31.8406)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A239B #349B23
analogous
#4E239B #8A239B #9B2370
triadic
#8A239B #9B8A23 #239B8A
tetradic
#8A239B #9B4E23 #349B23 #23709B
square
#8A239B #9B4E23 #349B23 #23709B
split-complementary
#8A239B #709B23 #239B4E
monochromatic
#310C37 #5E1869 #8A239B #B62ECD #C95EDB

Accessibility & contrast

On white

7.52
#8A239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A239B
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A239B#FFFFFF#000000##FFFFFF
##8A239B1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#335898
Tritanopia (blue-blind)
#8B3B5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a239b;
/* rgb */ color: rgb(138, 35, 155);
/* oklch */ color: oklch(47.3% 0.194 321.5);
Tailwind
colors: {
  custom: {
    50: '#b06ab9',
    500: '#8a239b',
    950: '#000000',
  },
}
SCSS
$custom: #8a239b;
$custom-light: #b06ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a239b",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 291.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47326,
    "c": 0.19435,
    "h": 321.5
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#8A239B
secondary
#69BF5A
accent
#E64259
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A239B

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

Preview Lab → · Contrast checker → · Palette generator →

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