#8A2EC2#8A2EC2

#8A2EC2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.1% C 0.218 H 308.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A2EC2
RGBrgb(138, 46, 194)
HSLhsl(277, 62%, 47%)
HSVhsv(277, 76%, 76%)
CMYKcmyk(28.9%, 76.3%, 0%, 23.9%)
CIE-LABlab(40.00, 61.81, -59.86)
CIE-LCHlch(40.00, 86.04, 315.92°)
OKLaboklab(51.06% 0.1363 -0.1699)
OKLCHoklch(51.06% 0.218 308.7)
XYZxyz(21.1938, 11.2527, 52.0840)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EC2 #66C22E
analogous
#402EC2 #8A2EC2 #C22EB0
triadic
#8A2EC2 #C28A2E #2EC28A
tetradic
#8A2EC2 #C2402E #66C22E #2EB0C2
square
#8A2EC2 #C2402E #66C22E #2EB0C2
split-complementary
#8A2EC2 #B0C22E #2EC240
monochromatic
#44175F #672291 #8A2EC2 #A656D7 #C088E3

Accessibility & contrast

On white

6.46
#8A2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EC2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EC2#FFFFFF#000000##FFFFFF
##8A2EC21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#815277
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a2ec2;
/* rgb */ color: rgb(138, 46, 194);
/* oklch */ color: oklch(51.1% 0.218 308.7);
Tailwind
colors: {
  custom: {
    50: '#b171d5',
    500: '#8a2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ec2;
$custom-light: #b171d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ec2",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 277.297,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51062,
    "c": 0.21785,
    "h": 308.7
  },
  "luminance": 0.11252
}

Semantic roles & 50–950 ramp

primary
#8A2EC2
secondary
#9DCC7F
accent
#E54380
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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