#8A2EB9#8A2EB9

#8A2EB9 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.209 H 311.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A2EB9
RGBrgb(138, 46, 185)
HSLhsl(280, 60%, 45%)
HSVhsv(280, 75%, 73%)
CMYKcmyk(25.4%, 75.1%, 0%, 27.5%)
CIE-LABlab(39.34, 59.89, -55.64)
CIE-LCHlch(39.34, 81.75, 317.11°)
OKLaboklab(50.39% 0.138 -0.1576)
OKLCHoklch(50.39% 0.209 311.2)
XYZxyz(20.2135, 10.8606, 46.9210)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EB9 #5DB92E
analogous
#442EB9 #8A2EB9 #B92EA2
triadic
#8A2EB9 #B98A2E #2EB98A
tetradic
#8A2EB9 #B9442E #5DB92E #2EA2B9
square
#8A2EB9 #B9442E #5DB92E #2EA2B9
split-complementary
#8A2EB9 #A2B92E #2EB944
monochromatic
#411657 #652288 #8A2EB9 #A751D4 #C082E0

Accessibility & contrast

On white

6.62
#8A2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A2EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EB9
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EB9#FFFFFF#000000##FFFFFF
##8A2EB91.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#125EB6
Tritanopia (blue-blind)
#844E72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2eb9;
/* rgb */ color: rgb(138, 46, 185);
/* oklch */ color: oklch(50.4% 0.209 311.2);
Tailwind
colors: {
  custom: {
    50: '#b170cf',
    500: '#8a2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eb9;
$custom-light: #b170cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eb9",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 279.712,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50391,
    "c": 0.20945,
    "h": 311.2
  },
  "luminance": 0.1086
}

Semantic roles & 50–950 ramp

primary
#8A2EB9
secondary
#95C97A
accent
#E3447A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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