#8A2ED7#8A2ED7

#8A2ED7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.7% C 0.238 H 303.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A2ED7
RGBrgb(138, 46, 215)
HSLhsl(273, 68%, 51%)
HSVhsv(273, 79%, 84%)
CMYKcmyk(35.8%, 78.6%, 0%, 15.7%)
CIE-LABlab(41.63, 66.39, -69.38)
CIE-LCHlch(41.63, 96.02, 313.74°)
OKLaboklab(52.71% 0.1313 -0.1979)
OKLCHoklch(52.71% 0.238 303.6)
XYZxyz(23.7211, 12.2636, 65.3942)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2ED7 #7BD72E
analogous
#352ED7 #8A2ED7 #D72ECF
triadic
#8A2ED7 #D78A2E #2ED78A
tetradic
#8A2ED7 #D7352E #7BD72E #2ECFD7
square
#8A2ED7 #D7352E #7BD72E #2ECFD7
split-complementary
#8A2ED7 #CFD72E #2ED735
monochromatic
#491674 #6A20A8 #8A2ED7 #A761E1 #C495EB

Accessibility & contrast

On white

6.08
#8A2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2ED7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2ED7#FFFFFF#000000##FFFFFF
##8A2ED71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#7A5B83
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a2ed7;
/* rgb */ color: rgb(138, 46, 215);
/* oklch */ color: oklch(52.7% 0.238 303.6);
Tailwind
colors: {
  custom: {
    50: '#b372e4',
    500: '#8a2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ed7;
$custom-light: #b372e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ed7",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 272.663,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52711,
    "c": 0.23752,
    "h": 303.6
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#8A2ED7
secondary
#ADD68B
accent
#EB3D8C
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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