#8A23A7#8A23A7

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

Color values

HEX#8A23A7
RGBrgb(138, 35, 167)
HSLhsl(287, 65%, 40%)
HSVhsv(287, 79%, 65%)
CMYKcmyk(17.4%, 79%, 0%, 34.5%)
CIE-LABlab(36.74, 60.12, -49.16)
CIE-LCHlch(36.74, 77.66, 320.73°)
OKLaboklab(48.15% 0.1506 -0.1384)
OKLCHoklch(48.15% 0.205 317.4)
XYZxyz(18.0563, 9.3962, 37.4143)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23A7 #40A723
analogous
#4823A7 #8A23A7 #A72382
triadic
#8A23A7 #A78A23 #23A78A
tetradic
#8A23A7 #A74823 #40A723 #2382A7
square
#8A23A7 #A74823 #40A723 #2382A7
split-complementary
#8A23A7 #82A723 #23A748
monochromatic
#360E42 #601874 #8A23A7 #B133D4 #C466DF

Accessibility & contrast

On white

7.29
#8A23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A23A7
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23A7#FFFFFF#000000##FFFFFF
##8A23A71.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#2659A4
Tritanopia (blue-blind)
#894165
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a23a7;
/* rgb */ color: rgb(138, 35, 167);
/* oklch */ color: oklch(48.1% 0.205 317.4);
Tailwind
colors: {
  custom: {
    50: '#b06bc2',
    500: '#8a23a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a23a7;
$custom-light: #b06bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23a7",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 286.818,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4815,
    "c": 0.20453,
    "h": 317.4
  },
  "luminance": 0.09395
}

Semantic roles & 50–950 ramp

primary
#8A23A7
secondary
#77C461
accent
#E83F65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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