#8A38B9#8A38B9

#8A38B9 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.4% C 0.198 H 310.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A38B9
RGBrgb(138, 56, 185)
HSLhsl(278, 54%, 47%)
HSVhsv(278, 70%, 73%)
CMYKcmyk(25.4%, 69.7%, 0%, 27.5%)
CIE-LABlab(40.79, 55.79, -53.31)
CIE-LCHlch(40.79, 77.17, 316.31°)
OKLaboklab(51.42% 0.1281 -0.1507)
OKLCHoklch(51.42% 0.198 310.4)
XYZxyz(20.6507, 11.7349, 47.0667)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B9 #67B938
analogous
#4A38B9 #8A38B9 #B938A7
triadic
#8A38B9 #B98A38 #38B98A
tetradic
#8A38B9 #B94A38 #67B938 #38A7B9
square
#8A38B9 #B94A38 #67B938 #38A7B9
split-complementary
#8A38B9 #A7B938 #38B94A
monochromatic
#441C5B #672A8A #8A38B9 #A65FCF #C08EDD

Accessibility & contrast

On white

6.27
#8A38B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A38B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B9#FFFFFF#000000##FFFFFF
##8A38B91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#2361B6
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a38b9;
/* rgb */ color: rgb(138, 56, 185);
/* oklch */ color: oklch(51.4% 0.198 310.4);
Tailwind
colors: {
  custom: {
    50: '#b075cf',
    500: '#8a38b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b9;
$custom-light: #b075cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b9",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 278.14,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.19783,
    "h": 310.4
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#8A38B9
secondary
#9DC885
accent
#DD4B80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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