#8A38BB#8A38BB

#8A38BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.6% C 0.200 H 309.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A38BB
RGBrgb(138, 56, 187)
HSLhsl(278, 54%, 48%)
HSVhsv(278, 70%, 73%)
CMYKcmyk(26.2%, 70.1%, 0%, 26.7%)
CIE-LABlab(40.93, 56.23, -54.26)
CIE-LCHlch(40.93, 78.14, 316.02°)
OKLaboklab(51.56% 0.1279 -0.1535)
OKLCHoklch(51.56% 0.2 309.8)
XYZxyz(20.8633, 11.8199, 48.1865)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38BB #69BB38
analogous
#4838BB #8A38BB #BB38AA
triadic
#8A38BB #BB8A38 #38BB8A
tetradic
#8A38BB #BB4838 #69BB38 #38AABB
square
#8A38BB #BB4838 #69BB38 #38AABB
split-complementary
#8A38BB #AABB38 #38BB48
monochromatic
#441C5D #672A8C #8A38BB #A661D0 #C190DE

Accessibility & contrast

On white

6.24
#8A38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A38BB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38BB#FFFFFF#000000##FFFFFF
##8A38BB1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a38bb;
/* rgb */ color: rgb(138, 56, 187);
/* oklch */ color: oklch(51.6% 0.200 309.8);
Tailwind
colors: {
  custom: {
    50: '#b075d0',
    500: '#8a38bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a38bb;
$custom-light: #b075d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38bb",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 277.557,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5156,
    "c": 0.19982,
    "h": 309.8
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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