#8A38C3#8A38C3

#8A38C3 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.208 H 307.6°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8A38C3
RGBrgb(138, 56, 195)
HSLhsl(275, 55%, 49%)
HSVhsv(275, 71%, 76%)
CMYKcmyk(29.2%, 71.3%, 0%, 23.5%)
CIE-LABlab(41.49, 58.00, -58.03)
CIE-LCHlch(41.49, 82.05, 314.99°)
OKLaboklab(52.14% 0.1268 -0.1646)
OKLCHoklch(52.14% 0.208 307.6)
XYZxyz(21.7437, 12.1721, 52.8232)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38C3 #71C338
analogous
#4538C3 #8A38C3 #C338B6
triadic
#8A38C3 #C38A38 #38C38A
tetradic
#8A38C3 #C34538 #71C338 #38B6C3
square
#8A38C3 #C34538 #71C338 #38B6C3
split-complementary
#8A38C3 #B6C338 #38C345
monochromatic
#471D64 #682A93 #8A38C3 #A665D3 #C295E1

Accessibility & contrast

On white

6.11
#8A38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38C3
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38C3#FFFFFF#000000##FFFFFF
##8A38C31.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC7
Deuteranopia (green-blind)
#0A63C0
Tritanopia (blue-blind)
#81587A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a38c3;
/* rgb */ color: rgb(138, 56, 195);
/* oklch */ color: oklch(52.1% 0.208 307.6);
Tailwind
colors: {
  custom: {
    50: '#b176d6',
    500: '#8a38c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a38c3;
$custom-light: #b176d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38c3",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 275.396,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52136,
    "c": 0.2078,
    "h": 307.6
  },
  "luminance": 0.12172
}

Semantic roles & 50–950 ramp

primary
#8A38C3
secondary
#A6CC8B
accent
#DF4986
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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