#8A23B1#8A23B1

#8A23B1 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.9% C 0.213 H 314.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8A23B1
RGBrgb(138, 35, 177)
HSLhsl(284, 67%, 42%)
HSVhsv(284, 80%, 69%)
CMYKcmyk(22%, 80.2%, 0%, 30.6%)
CIE-LABlab(37.45, 62.07, -53.99)
CIE-LCHlch(37.45, 82.26, 318.99°)
OKLaboklab(48.87% 0.1488 -0.1526)
OKLCHoklch(48.87% 0.213 314.3)
XYZxyz(19.0167, 9.7803, 42.4725)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23B1 #4AB123
analogous
#4323B1 #8A23B1 #B12391
triadic
#8A23B1 #B18A23 #23B18A
tetradic
#8A23B1 #B14323 #4AB123 #2391B1
square
#8A23B1 #B14323 #4AB123 #2391B1
split-complementary
#8A23B1 #91B123 #23B143
monochromatic
#3A0F4B #62197E #8A23B1 #AC39D8 #C26CE2

Accessibility & contrast

On white

7.10
#8A23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A23B1
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23B1#FFFFFF#000000##FFFFFF
##8A23B11.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#155AAE
Tritanopia (blue-blind)
#86466B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a23b1;
/* rgb */ color: rgb(138, 35, 177);
/* oklch */ color: oklch(48.9% 0.213 314.3);
Tailwind
colors: {
  custom: {
    50: '#b16bc9',
    500: '#8a23b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a23b1;
$custom-light: #b16bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23b1",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 283.521,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48873,
    "c": 0.21313,
    "h": 314.3
  },
  "luminance": 0.0978
}

Semantic roles & 50–950 ramp

primary
#8A23B1
secondary
#82C868
accent
#EA3E6D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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