#8A38DC#8A38DC

#8A38DC is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.0% C 0.233 H 301.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A38DC
RGBrgb(138, 56, 220)
HSLhsl(270, 70%, 54%)
HSVhsv(270, 75%, 86%)
CMYKcmyk(37.3%, 74.5%, 0%, 13.7%)
CIE-LABlab(43.36, 63.69, -69.43)
CIE-LCHlch(43.36, 94.22, 312.53°)
OKLaboklab(54.04% 0.122 -0.1981)
OKLCHoklch(54.04% 0.233 301.6)
XYZxyz(24.8105, 13.3988, 68.9754)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38DC #8ADC38
analogous
#3838DC #8A38DC #DC38DC
triadic
#8A38DC #DC8A38 #38DC8A
tetradic
#8A38DC #DC3838 #8ADC38 #38DCDC
square
#8A38DC #DC3838 #8ADC38 #38DCDC
split-complementary
#8A38DC #DCDC38 #38DC38
monochromatic
#4D1783 #6B20B7 #8A38DC #A96CE5 #C7A0EE

Accessibility & contrast

On white

5.71
#8A38DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A38DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38DC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38DC#FFFFFF#000000##FFFFFF
##8A38DC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#0066D9
Tritanopia (blue-blind)
#786288
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a38dc;
/* rgb */ color: rgb(138, 56, 220);
/* oklch */ color: oklch(54.0% 0.233 301.6);
Tailwind
colors: {
  custom: {
    50: '#b377e8',
    500: '#8a38dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a38dc;
$custom-light: #b377e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38dc",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 220
  },
  "hsl": {
    "h": 270,
    "s": 70.085,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54043,
    "c": 0.23268,
    "h": 301.6
  },
  "luminance": 0.13399
}

Semantic roles & 50–950 ramp

primary
#8A38DC
secondary
#B8DB95
accent
#ED3B94
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A38DC

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

Preview Lab → · Contrast checker → · Palette generator →

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