#8A23A8#8A23A8

#8A23A8 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.2% C 0.205 H 317.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A23A8
RGBrgb(138, 35, 168)
HSLhsl(286, 66%, 40%)
HSVhsv(286, 79%, 66%)
CMYKcmyk(17.9%, 79.2%, 0%, 34.1%)
CIE-LABlab(36.81, 60.31, -49.65)
CIE-LCHlch(36.81, 78.12, 320.54°)
OKLaboklab(48.22% 0.1504 -0.1399)
OKLCHoklch(48.22% 0.205 317.1)
XYZxyz(18.1491, 9.4333, 37.9030)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23A8 #41A823
analogous
#4723A8 #8A23A8 #A82384
triadic
#8A23A8 #A88A23 #23A88A
tetradic
#8A23A8 #A84723 #41A823 #2384A8
square
#8A23A8 #A84723 #41A823 #2384A8
split-complementary
#8A23A8 #84A823 #23A847
monochromatic
#370E43 #601875 #8A23A8 #B034D5 #C466DF

Accessibility & contrast

On white

7.28
#8A23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A23A8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23A8#FFFFFF#000000##FFFFFF
##8A23A81.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#2559A5
Tritanopia (blue-blind)
#884166
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a23a8;
/* rgb */ color: rgb(138, 35, 168);
/* oklch */ color: oklch(48.2% 0.205 317.1);
Tailwind
colors: {
  custom: {
    50: '#b06bc3',
    500: '#8a23a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a23a8;
$custom-light: #b06bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23a8",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 286.466,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48221,
    "c": 0.20538,
    "h": 317.1
  },
  "luminance": 0.09432
}

Semantic roles & 50–950 ramp

primary
#8A23A8
secondary
#78C562
accent
#E83F65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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