#8A3BAF#8A3BAF

#8A3BAF is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.1% C 0.184 H 313.1°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A3BAF
RGBrgb(138, 59, 175)
HSLhsl(281, 50%, 46%)
HSVhsv(281, 66%, 69%)
CMYKcmyk(21.1%, 66.3%, 0%, 31.4%)
CIE-LABlab(40.62, 52.27, -47.69)
CIE-LCHlch(40.62, 70.75, 317.63°)
OKLaboklab(51.08% 0.1257 -0.1343)
OKLCHoklch(51.08% 0.184 313.1)
XYZxyz(19.7817, 11.6269, 41.7513)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BAF #60AF3B
analogous
#503BAF #8A3BAF #AF3B9A
triadic
#8A3BAF #AF8A3B #3BAF8A
tetradic
#8A3BAF #AF503B #60AF3B #3B9AAF
square
#8A3BAF #AF503B #60AF3B #3B9AAF
split-complementary
#8A3BAF #9AAF3B #3BAF50
monochromatic
#421C53 #662C81 #8A3BAF #A75EC9 #C08CD8

Accessibility & contrast

On white

6.32
#8A3BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A3BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BAF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BAF#FFFFFF#000000##FFFFFF
##8A3BAF1.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#3362AC
Tritanopia (blue-blind)
#865270
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3baf;
/* rgb */ color: rgb(138, 59, 175);
/* oklch */ color: oklch(51.1% 0.184 313.1);
Tailwind
colors: {
  custom: {
    50: '#b077c7',
    500: '#8a3baf',
    950: '#000000',
  },
}
SCSS
$custom: #8a3baf;
$custom-light: #b077c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3baf",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 280.862,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51084,
    "c": 0.18389,
    "h": 313.1
  },
  "luminance": 0.11626
}

Semantic roles & 50–950 ramp

primary
#8A3BAF
secondary
#97C383
accent
#D94F7B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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