#8A38B8#8A38B8

#8A38B8 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.197 H 310.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8A38B8
RGBrgb(138, 56, 184)
HSLhsl(278, 53%, 47%)
HSVhsv(278, 70%, 72%)
CMYKcmyk(25%, 69.6%, 0%, 27.8%)
CIE-LABlab(40.72, 55.58, -52.83)
CIE-LCHlch(40.72, 76.68, 316.45°)
OKLaboklab(51.35% 0.1282 -0.1493)
OKLCHoklch(51.35% 0.197 310.6)
XYZxyz(20.5455, 11.6928, 46.5127)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B8 #66B838
analogous
#4A38B8 #8A38B8 #B838A6
triadic
#8A38B8 #B88A38 #38B88A
tetradic
#8A38B8 #B84A38 #66B838 #38A6B8
square
#8A38B8 #B84A38 #66B838 #38A6B8
split-complementary
#8A38B8 #A6B838 #38B84A
monochromatic
#441B5A #672A89 #8A38B8 #A65FCE #C08EDD

Accessibility & contrast

On white

6.29
#8A38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A38B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B8
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B8#FFFFFF#000000##FFFFFF
##8A38B81.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#2561B5
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a38b8;
/* rgb */ color: rgb(138, 56, 184);
/* oklch */ color: oklch(51.3% 0.197 310.6);
Tailwind
colors: {
  custom: {
    50: '#b075ce',
    500: '#8a38b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b8;
$custom-light: #b075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b8",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 278.438,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51349,
    "c": 0.19685,
    "h": 310.6
  },
  "luminance": 0.11692
}

Semantic roles & 50–950 ramp

primary
#8A38B8
secondary
#9DC785
accent
#DD4B7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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