#8A23D4#8A23D4

#8A23D4 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.6% C 0.244 H 305.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A23D4
RGBrgb(138, 35, 212)
HSLhsl(275, 72%, 48%)
HSVhsv(275, 83%, 83%)
CMYKcmyk(34.9%, 83.5%, 0%, 16.9%)
CIE-LABlab(40.18, 69.26, -70.02)
CIE-LCHlch(40.18, 98.49, 314.69°)
OKLaboklab(51.63% 0.1398 -0.1997)
OKLCHoklch(51.63% 0.244 305)
XYZxyz(22.9632, 11.3589, 63.2573)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23D4 #6DD423
analogous
#3123D4 #8A23D4 #D423C5
triadic
#8A23D4 #D48A23 #23D48A
tetradic
#8A23D4 #D43123 #6DD423 #23C5D4
square
#8A23D4 #D43123 #6DD423 #23C5D4
split-complementary
#8A23D4 #C5D423 #23D431
monochromatic
#46126B #681A9F #8A23D4 #A652E2 #C186EB

Accessibility & contrast

On white

6.42
#8A23D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A23D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A23D4
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23D4#FFFFFF#000000##FFFFFF
##8A23D41.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#005FD1
Tritanopia (blue-blind)
#7C567F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a23d4;
/* rgb */ color: rgb(138, 35, 212);
/* oklch */ color: oklch(51.6% 0.244 305.0);
Tailwind
colors: {
  custom: {
    50: '#b36de2',
    500: '#8a23d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a23d4;
$custom-light: #b36de2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23d4",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 274.915,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51626,
    "c": 0.24377,
    "h": 305
  },
  "luminance": 0.11359
}

Semantic roles & 50–950 ramp

primary
#8A23D4
secondary
#A2D47E
accent
#EE3985
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120816
muted
#817B84

Preview Lab

Preview with #8A23D4

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

Preview Lab → · Contrast checker → · Palette generator →

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