#8A38B3#8A38B3

#8A38B3 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.192 H 312.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A38B3
RGBrgb(138, 56, 179)
HSLhsl(280, 52%, 46%)
HSVhsv(280, 69%, 70%)
CMYKcmyk(22.9%, 68.7%, 0%, 29.8%)
CIE-LABlab(40.39, 54.49, -50.42)
CIE-LCHlch(40.39, 74.24, 317.22°)
OKLaboklab(51% 0.1287 -0.1423)
OKLCHoklch(51% 0.192 312.1)
XYZxyz(20.0306, 11.4868, 43.8011)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B3 #61B338
analogous
#4C38B3 #8A38B3 #B3389E
triadic
#8A38B3 #B38A38 #38B38A
tetradic
#8A38B3 #B34C38 #61B338 #389EB3
square
#8A38B3 #B34C38 #61B338 #389EB3
split-complementary
#8A38B3 #9EB338 #38B34C
monochromatic
#421B56 #662984 #8A38B3 #A75CCC #C08BDB

Accessibility & contrast

On white

6.37
#8A38B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A38B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B3
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B3#FFFFFF#000000##FFFFFF
##8A38B31.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#2B61B0
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38b3;
/* rgb */ color: rgb(138, 56, 179);
/* oklch */ color: oklch(51.0% 0.192 312.1);
Tailwind
colors: {
  custom: {
    50: '#b075ca',
    500: '#8a38b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b3;
$custom-light: #b075ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b3",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 280,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51003,
    "c": 0.19187,
    "h": 312.1
  },
  "luminance": 0.11486
}

Semantic roles & 50–950 ramp

primary
#8A38B3
secondary
#98C582
accent
#DC4C7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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