#8A38B1#8A38B1

#8A38B1 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.190 H 312.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A38B1
RGBrgb(138, 56, 177)
HSLhsl(281, 52%, 46%)
HSVhsv(281, 68%, 69%)
CMYKcmyk(22%, 68.4%, 0%, 30.6%)
CIE-LABlab(40.26, 54.06, -49.45)
CIE-LCHlch(40.26, 73.27, 317.55°)
OKLaboklab(50.87% 0.1289 -0.1394)
OKLCHoklch(50.87% 0.19 312.8)
XYZxyz(19.8298, 11.4065, 42.7435)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B1 #5FB138
analogous
#4D38B1 #8A38B1 #B1389B
triadic
#8A38B1 #B18A38 #38B18A
tetradic
#8A38B1 #B14D38 #5FB138 #389BB1
square
#8A38B1 #B14D38 #5FB138 #389BB1
split-complementary
#8A38B1 #9BB138 #38B14D
monochromatic
#421B54 #662983 #8A38B1 #A75BCB #C08ADA

Accessibility & contrast

On white

6.40
#8A38B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A38B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B1
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B1#FFFFFF#000000##FFFFFF
##8A38B11.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#2E61AE
Tritanopia (blue-blind)
#865170
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38b1;
/* rgb */ color: rgb(138, 56, 177);
/* oklch */ color: oklch(50.9% 0.190 312.8);
Tailwind
colors: {
  custom: {
    50: '#b075c9',
    500: '#8a38b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b1;
$custom-light: #b075c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b1",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 280.661,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50866,
    "c": 0.18989,
    "h": 312.8
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#8A38B1
secondary
#96C481
accent
#DB4C7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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