#8A38B0#8A38B0

#8A38B0 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.8% C 0.189 H 313.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A38B0
RGBrgb(138, 56, 176)
HSLhsl(281, 52%, 45%)
HSVhsv(281, 68%, 69%)
CMYKcmyk(21.6%, 68.2%, 0%, 31%)
CIE-LABlab(40.19, 53.85, -48.96)
CIE-LCHlch(40.19, 72.78, 317.72°)
OKLaboklab(50.8% 0.129 -0.138)
OKLCHoklch(50.8% 0.189 313.1)
XYZxyz(19.7305, 11.3668, 42.2205)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B0 #5EB038
analogous
#4E38B0 #8A38B0 #B0389A
triadic
#8A38B0 #B08A38 #38B08A
tetradic
#8A38B0 #B04E38 #5EB038 #389AB0
square
#8A38B0 #B04E38 #5EB038 #389AB0
split-complementary
#8A38B0 #9AB038 #38B04E
monochromatic
#411A53 #662982 #8A38B0 #A75BCB #C089D9

Accessibility & contrast

On white

6.42
#8A38B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A38B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B0
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B0#FFFFFF#000000##FFFFFF
##8A38B01.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#2F61AD
Tritanopia (blue-blind)
#86506F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38b0;
/* rgb */ color: rgb(138, 56, 176);
/* oklch */ color: oklch(50.8% 0.189 313.1);
Tailwind
colors: {
  custom: {
    50: '#b075c8',
    500: '#8a38b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b0;
$custom-light: #b075c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b0",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 281,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50799,
    "c": 0.1889,
    "h": 313.1
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#8A38B0
secondary
#96C480
accent
#DB4D7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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