#8A2DE2#8A2DE2

#8A2DE2 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.5% C 0.249 H 301.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A2DE2
RGBrgb(138, 45, 226)
HSLhsl(271, 76%, 53%)
HSVhsv(271, 80%, 89%)
CMYKcmyk(38.9%, 80.1%, 0%, 11.4%)
CIE-LABlab(42.42, 69.18, -74.39)
CIE-LCHlch(42.42, 101.59, 312.92°)
OKLaboklab(53.54% 0.129 -0.2126)
OKLCHoklch(53.54% 0.249 301.2)
XYZxyz(25.1437, 12.7709, 73.0771)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DE2 #85E22D
analogous
#2F2DE2 #8A2DE2 #E22DDF
triadic
#8A2DE2 #E28A2D #2DE28A
tetradic
#8A2DE2 #E22F2D #85E22D #2DDFE2
square
#8A2DE2 #E22F2D #85E22D #2DDFE2
split-complementary
#8A2DE2 #DFE22D #2DE22F
monochromatic
#4C1283 #6B19B8 #8A2DE2 #A863E9 #C699F1

Accessibility & contrast

On white

5.91
#8A2DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A2DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DE2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DE2#FFFFFF#000000##FFFFFF
##8A2DE21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0063DF
Tritanopia (blue-blind)
#766089
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a2de2;
/* rgb */ color: rgb(138, 45, 226);
/* oklch */ color: oklch(53.5% 0.249 301.2);
Tailwind
colors: {
  custom: {
    50: '#b472ec',
    500: '#8a2de2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2de2;
$custom-light: #b472ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2de2",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 270.829,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53535,
    "c": 0.24868,
    "h": 301.2
  },
  "luminance": 0.12771
}

Semantic roles & 50–950 ramp

primary
#8A2DE2
secondary
#B4DC8E
accent
#F23591
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A2DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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