#8A38C6#8A38C6

#8A38C6 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.4% C 0.211 H 306.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A38C6
RGBrgb(138, 56, 198)
HSLhsl(275, 56%, 50%)
HSVhsv(275, 72%, 78%)
CMYKcmyk(30.3%, 71.7%, 0%, 22.4%)
CIE-LABlab(41.70, 58.68, -59.43)
CIE-LCHlch(41.70, 83.52, 314.63°)
OKLaboklab(52.36% 0.1263 -0.1687)
OKLCHoklch(52.36% 0.211 306.8)
XYZxyz(22.0863, 12.3091, 54.6275)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38C6 #74C638
analogous
#4338C6 #8A38C6 #C638BB
triadic
#8A38C6 #C68A38 #38C68A
tetradic
#8A38C6 #C64338 #74C638 #38BBC6
square
#8A38C6 #C64338 #74C638 #38BBC6
split-complementary
#8A38C6 #BBC638 #38C643
monochromatic
#471D67 #692B96 #8A38C6 #A667D4 #C297E2

Accessibility & contrast

On white

6.07
#8A38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38C6
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38C6#FFFFFF#000000##FFFFFF
##8A38C61.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#80597C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a38c6;
/* rgb */ color: rgb(138, 56, 198);
/* oklch */ color: oklch(52.4% 0.211 306.8);
Tailwind
colors: {
  custom: {
    50: '#b176d8',
    500: '#8a38c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a38c6;
$custom-light: #b176d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38c6",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 274.648,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52356,
    "c": 0.21079,
    "h": 306.8
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#8A38C6
secondary
#A8CD8D
accent
#DF4988
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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