#8A2EC5#8A2EC5

#8A2EC5 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.221 H 307.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A2EC5
RGBrgb(138, 46, 197)
HSLhsl(277, 62%, 48%)
HSVhsv(277, 77%, 77%)
CMYKcmyk(29.9%, 76.6%, 0%, 22.7%)
CIE-LABlab(40.23, 62.45, -61.24)
CIE-LCHlch(40.23, 87.47, 315.56°)
OKLaboklab(51.29% 0.1357 -0.174)
OKLCHoklch(51.29% 0.221 307.9)
XYZxyz(21.5341, 11.3888, 53.8763)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EC5 #69C52E
analogous
#3E2EC5 #8A2EC5 #C52EB5
triadic
#8A2EC5 #C58A2E #2EC58A
tetradic
#8A2EC5 #C53E2E #69C52E #2EB5C5
square
#8A2EC5 #C53E2E #69C52E #2EB5C5
split-complementary
#8A2EC5 #B5C52E #2EC53E
monochromatic
#441762 #672293 #8A2EC5 #A658D8 #C18AE4

Accessibility & contrast

On white

6.41
#8A2EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A2EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EC5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EC5#FFFFFF#000000##FFFFFF
##8A2EC51.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#805479
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2ec5;
/* rgb */ color: rgb(138, 46, 197);
/* oklch */ color: oklch(51.3% 0.221 307.9);
Tailwind
colors: {
  custom: {
    50: '#b271d7',
    500: '#8a2ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ec5;
$custom-light: #b271d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ec5",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 276.556,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.22066,
    "h": 307.9
  },
  "luminance": 0.11388
}

Semantic roles & 50–950 ramp

primary
#8A2EC5
secondary
#9FCE81
accent
#E54382
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #8A2EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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