#8A38D1#8A38D1

#8A38D1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.2% C 0.222 H 304.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A38D1
RGBrgb(138, 56, 209)
HSLhsl(272, 62%, 52%)
HSVhsv(272, 73%, 82%)
CMYKcmyk(34%, 73.2%, 0%, 18%)
CIE-LABlab(42.51, 61.17, -64.49)
CIE-LCHlch(42.51, 88.88, 313.49°)
OKLaboklab(53.18% 0.1243 -0.1836)
OKLCHoklch(53.18% 0.222 304.1)
XYZxyz(23.4014, 12.8351, 61.5538)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38D1 #7FD138
analogous
#3E38D1 #8A38D1 #D138CB
triadic
#8A38D1 #D18A38 #38D18A
tetradic
#8A38D1 #D13E38 #7FD138 #38CBD1
square
#8A38D1 #D13E38 #7FD138 #38CBD1
split-complementary
#8A38D1 #CBD138 #38D13E
monochromatic
#4B1B74 #6A26A6 #8A38D1 #A76ADC #C49BE8

Accessibility & contrast

On white

5.89
#8A38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38D1
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38D1#FFFFFF#000000##FFFFFF
##8A38D11.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#7C5E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a38d1;
/* rgb */ color: rgb(138, 56, 209);
/* oklch */ color: oklch(53.2% 0.222 304.1);
Tailwind
colors: {
  custom: {
    50: '#b276e0',
    500: '#8a38d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a38d1;
$custom-light: #b276e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38d1",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 272.157,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53184,
    "c": 0.22174,
    "h": 304.1
  },
  "luminance": 0.12835
}

Semantic roles & 50–950 ramp

primary
#8A38D1
secondary
#B0D491
accent
#E6428E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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