#8A38BD#8A38BD

#8A38BD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.202 H 309.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A38BD
RGBrgb(138, 56, 189)
HSLhsl(277, 54%, 48%)
HSVhsv(277, 70%, 74%)
CMYKcmyk(27%, 70.4%, 0%, 25.9%)
CIE-LABlab(41.07, 56.67, -55.21)
CIE-LCHlch(41.07, 79.12, 315.75°)
OKLaboklab(51.7% 0.1276 -0.1563)
OKLCHoklch(51.7% 0.202 309.2)
XYZxyz(21.0789, 11.9061, 49.3219)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38BD #6BBD38
analogous
#4738BD #8A38BD #BD38AE
triadic
#8A38BD #BD8A38 #38BD8A
tetradic
#8A38BD #BD4738 #6BBD38 #38AEBD
square
#8A38BD #BD4738 #6BBD38 #38AEBD
split-complementary
#8A38BD #AEBD38 #38BD47
monochromatic
#451C5F #682A8E #8A38BD #A662D0 #C191DE

Accessibility & contrast

On white

6.21
#8A38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38BD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38BD#FFFFFF#000000##FFFFFF
##8A38BD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#1C62BA
Tritanopia (blue-blind)
#825677
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a38bd;
/* rgb */ color: rgb(138, 56, 189);
/* oklch */ color: oklch(51.7% 0.202 309.2);
Tailwind
colors: {
  custom: {
    50: '#b175d2',
    500: '#8a38bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a38bd;
$custom-light: #b175d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38bd",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 276.992,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51702,
    "c": 0.20181,
    "h": 309.2
  },
  "luminance": 0.11906
}

Semantic roles & 50–950 ramp

primary
#8A38BD
secondary
#A1C987
accent
#DE4A83
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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