#8A23B2#8A23B2

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

Color values

HEX#8A23B2
RGBrgb(138, 35, 178)
HSLhsl(283, 67%, 42%)
HSVhsv(283, 80%, 70%)
CMYKcmyk(22.5%, 80.3%, 0%, 30.2%)
CIE-LABlab(37.52, 62.27, -54.46)
CIE-LCHlch(37.52, 82.73, 318.83°)
OKLaboklab(48.95% 0.1486 -0.154)
OKLCHoklch(48.95% 0.214 314)
XYZxyz(19.1168, 9.8203, 42.9994)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23B2 #4BB223
analogous
#4323B2 #8A23B2 #B22393
triadic
#8A23B2 #B28A23 #23B28A
tetradic
#8A23B2 #B24323 #4BB223 #2393B2
square
#8A23B2 #B24323 #4BB223 #2393B2
split-complementary
#8A23B2 #93B223 #23B243
monochromatic
#3B0F4C #62197F #8A23B2 #AC3AD8 #C26DE2

Accessibility & contrast

On white

7.09
#8A23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A23B2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23B2#FFFFFF#000000##FFFFFF
##8A23B21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#135BAF
Tritanopia (blue-blind)
#86466B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a23b2;
/* rgb */ color: rgb(138, 35, 178);
/* oklch */ color: oklch(48.9% 0.214 314.0);
Tailwind
colors: {
  custom: {
    50: '#b16bca',
    500: '#8a23b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a23b2;
$custom-light: #b16bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23b2",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 283.217,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48947,
    "c": 0.214,
    "h": 314
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#8A23B2
secondary
#83C968
accent
#EA3E6E
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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