#8A38B6#8A38B6

#8A38B6 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.2% C 0.195 H 311.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A38B6
RGBrgb(138, 56, 182)
HSLhsl(279, 53%, 47%)
HSVhsv(279, 69%, 71%)
CMYKcmyk(24.2%, 69.2%, 0%, 28.6%)
CIE-LABlab(40.59, 55.14, -51.87)
CIE-LCHlch(40.59, 75.70, 316.75°)
OKLaboklab(51.21% 0.1284 -0.1465)
OKLCHoklch(51.21% 0.195 311.2)
XYZxyz(20.3373, 11.6095, 45.4164)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B6 #64B638
analogous
#4B38B6 #8A38B6 #B638A3
triadic
#8A38B6 #B68A38 #38B68A
tetradic
#8A38B6 #B64B38 #64B638 #38A3B6
square
#8A38B6 #B64B38 #64B638 #38A3B6
split-complementary
#8A38B6 #A3B638 #38B64B
monochromatic
#431B58 #672A87 #8A38B6 #A65ECD #C08DDC

Accessibility & contrast

On white

6.32
#8A38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A38B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B6
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B6#FFFFFF#000000##FFFFFF
##8A38B61.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#2861B3
Tritanopia (blue-blind)
#845373
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a38b6;
/* rgb */ color: rgb(138, 56, 182);
/* oklch */ color: oklch(51.2% 0.195 311.2);
Tailwind
colors: {
  custom: {
    50: '#b075cd',
    500: '#8a38b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b6;
$custom-light: #b075cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b6",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 279.048,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51209,
    "c": 0.19485,
    "h": 311.2
  },
  "luminance": 0.11609
}

Semantic roles & 50–950 ramp

primary
#8A38B6
secondary
#9BC684
accent
#DC4B7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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