#8A38D0#8A38D0

#8A38D0 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.1% C 0.221 H 304.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A38D0
RGBrgb(138, 56, 208)
HSLhsl(272, 62%, 52%)
HSVhsv(272, 73%, 82%)
CMYKcmyk(33.7%, 73.1%, 0%, 18.4%)
CIE-LABlab(42.44, 60.94, -64.03)
CIE-LCHlch(42.44, 88.39, 313.58°)
OKLaboklab(53.11% 0.1245 -0.1823)
OKLCHoklch(53.11% 0.221 304.3)
XYZxyz(23.2780, 12.7858, 60.9038)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38D0 #7ED038
analogous
#3E38D0 #8A38D0 #D038CA
triadic
#8A38D0 #D08A38 #38D08A
tetradic
#8A38D0 #D03E38 #7ED038 #38CAD0
square
#8A38D0 #D03E38 #7ED038 #38CAD0
split-complementary
#8A38D0 #CAD038 #38D03E
monochromatic
#4A1B73 #6A27A4 #8A38D0 #A76ADC #C49BE7

Accessibility & contrast

On white

5.90
#8A38D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A38D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38D0
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38D0#FFFFFF#000000##FFFFFF
##8A38D01.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D4
Deuteranopia (green-blind)
#0064CD
Tritanopia (blue-blind)
#7C5D81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a38d0;
/* rgb */ color: rgb(138, 56, 208);
/* oklch */ color: oklch(53.1% 0.221 304.3);
Tailwind
colors: {
  custom: {
    50: '#b276df',
    500: '#8a38d0',
    950: '#000000',
  },
}
SCSS
$custom: #8a38d0;
$custom-light: #b276df;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38d0",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 272.368,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53108,
    "c": 0.22075,
    "h": 304.3
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#8A38D0
secondary
#AFD391
accent
#E5438E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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