#8A38BA#8A38BA

#8A38BA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.5% C 0.199 H 310.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A38BA
RGBrgb(138, 56, 186)
HSLhsl(278, 54%, 47%)
HSVhsv(278, 70%, 73%)
CMYKcmyk(25.8%, 69.9%, 0%, 27.1%)
CIE-LABlab(40.86, 56.01, -53.78)
CIE-LCHlch(40.86, 77.65, 316.16°)
OKLaboklab(51.49% 0.128 -0.1521)
OKLCHoklch(51.49% 0.199 310.1)
XYZxyz(20.7566, 11.7772, 47.6246)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38BA #68BA38
analogous
#4938BA #8A38BA #BA38A9
triadic
#8A38BA #BA8A38 #38BA8A
tetradic
#8A38BA #BA4938 #68BA38 #38A9BA
square
#8A38BA #BA4938 #68BA38 #38A9BA
split-complementary
#8A38BA #A9BA38 #38BA49
monochromatic
#441C5C #672A8B #8A38BA #A660CF #C08FDD

Accessibility & contrast

On white

6.26
#8A38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38BA
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38BA#FFFFFF#000000##FFFFFF
##8A38BA1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#2162B7
Tritanopia (blue-blind)
#835475
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a38ba;
/* rgb */ color: rgb(138, 56, 186);
/* oklch */ color: oklch(51.5% 0.199 310.1);
Tailwind
colors: {
  custom: {
    50: '#b075cf',
    500: '#8a38ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a38ba;
$custom-light: #b075cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38ba",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 277.846,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51489,
    "c": 0.19882,
    "h": 310.1
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#8A38BA
secondary
#9EC886
accent
#DD4B81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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