#8A38D3#8A38D3

#8A38D3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.3% C 0.224 H 303.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A38D3
RGBrgb(138, 56, 211)
HSLhsl(272, 64%, 52%)
HSVhsv(272, 73%, 83%)
CMYKcmyk(34.6%, 73.5%, 0%, 17.3%)
CIE-LABlab(42.66, 61.62, -65.39)
CIE-LCHlch(42.66, 89.85, 313.30°)
OKLaboklab(53.34% 0.1239 -0.1863)
OKLCHoklch(53.34% 0.224 303.6)
XYZxyz(23.6505, 12.9348, 62.8661)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38D3 #81D338
analogous
#3D38D3 #8A38D3 #D338CE
triadic
#8A38D3 #D38A38 #38D38A
tetradic
#8A38D3 #D33D38 #81D338 #38CED3
square
#8A38D3 #D33D38 #81D338 #38CED3
split-complementary
#8A38D3 #CED338 #38D33D
monochromatic
#4B1A76 #6B25A9 #8A38D3 #A76ADE #C59CE9

Accessibility & contrast

On white

5.85
#8A38D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A38D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38D3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38D3#FFFFFF#000000##FFFFFF
##8A38D31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#7B5E83
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a38d3;
/* rgb */ color: rgb(138, 56, 211);
/* oklch */ color: oklch(53.3% 0.224 303.6);
Tailwind
colors: {
  custom: {
    50: '#b276e1',
    500: '#8a38d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a38d3;
$custom-light: #b276e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38d3",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 271.742,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53338,
    "c": 0.22374,
    "h": 303.6
  },
  "luminance": 0.12935
}

Semantic roles & 50–950 ramp

primary
#8A38D3
secondary
#B1D592
accent
#E7418F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A38D3

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

Preview Lab → · Contrast checker → · Palette generator →

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