#8A3BB2#8A3BB2

#8A3BB2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.187 H 312.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A3BB2
RGBrgb(138, 59, 178)
HSLhsl(280, 50%, 46%)
HSVhsv(280, 67%, 70%)
CMYKcmyk(22.5%, 66.9%, 0%, 30.2%)
CIE-LABlab(40.81, 52.92, -49.15)
CIE-LCHlch(40.81, 72.22, 317.11°)
OKLaboklab(51.28% 0.1255 -0.1386)
OKLCHoklch(51.28% 0.187 312.2)
XYZxyz(20.0796, 11.7461, 43.3203)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BB2 #63B23B
analogous
#4F3BB2 #8A3BB2 #B23B9F
triadic
#8A3BB2 #B28A3B #3BB28A
tetradic
#8A3BB2 #B24F3B #63B23B #3B9FB2
square
#8A3BB2 #B24F3B #63B23B #3B9FB2
split-complementary
#8A3BB2 #9FB23B #3BB24F
monochromatic
#431D56 #662C84 #8A3BB2 #A760CA #C08EDA

Accessibility & contrast

On white

6.27
#8A3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A3BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BB2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BB2#FFFFFF#000000##FFFFFF
##8A3BB21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3062AF
Tritanopia (blue-blind)
#855372
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3bb2;
/* rgb */ color: rgb(138, 59, 178);
/* oklch */ color: oklch(51.3% 0.187 312.2);
Tailwind
colors: {
  custom: {
    50: '#b077ca',
    500: '#8a3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bb2;
$custom-light: #b077ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bb2",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 279.832,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51284,
    "c": 0.18693,
    "h": 312.2
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

primary
#8A3BB2
secondary
#9AC485
accent
#DA4E7D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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