#8A38C0#8A38C0

#8A38C0 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.9% C 0.205 H 308.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A38C0
RGBrgb(138, 56, 192)
HSLhsl(276, 55%, 49%)
HSVhsv(276, 71%, 75%)
CMYKcmyk(28.1%, 70.8%, 0%, 24.7%)
CIE-LABlab(41.28, 57.34, -56.63)
CIE-LCHlch(41.28, 80.59, 315.36°)
OKLaboklab(51.92% 0.1272 -0.1605)
OKLCHoklch(51.92% 0.205 308.4)
XYZxyz(21.4079, 12.0377, 51.0547)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38C0 #6EC038
analogous
#4638C0 #8A38C0 #C038B2
triadic
#8A38C0 #C08A38 #38C08A
tetradic
#8A38C0 #C04638 #6EC038 #38B2C0
square
#8A38C0 #C04638 #6EC038 #38B2C0
split-complementary
#8A38C0 #B2C038 #38C046
monochromatic
#461C61 #682A91 #8A38C0 #A664D2 #C193DF

Accessibility & contrast

On white

6.16
#8A38C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A38C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38C0
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38C0#FFFFFF#000000##FFFFFF
##8A38C01.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC4
Deuteranopia (green-blind)
#1462BD
Tritanopia (blue-blind)
#825778
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a38c0;
/* rgb */ color: rgb(138, 56, 192);
/* oklch */ color: oklch(51.9% 0.205 308.4);
Tailwind
colors: {
  custom: {
    50: '#b176d4',
    500: '#8a38c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a38c0;
$custom-light: #b176d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38c0",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 276.176,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51918,
    "c": 0.20481,
    "h": 308.4
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#8A38C0
secondary
#A3CB89
accent
#DE4A85
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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