#8A2EB2#8A2EB2

#8A2EB2 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 49.9% C 0.203 H 313.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A2EB2
RGBrgb(138, 46, 178)
HSLhsl(282, 59%, 44%)
HSVhsv(282, 74%, 70%)
CMYKcmyk(22.5%, 74.2%, 0%, 30.2%)
CIE-LABlab(38.85, 58.44, -52.31)
CIE-LCHlch(38.85, 78.43, 318.17°)
OKLaboklab(49.89% 0.1391 -0.1477)
OKLCHoklch(49.89% 0.203 313.3)
XYZxyz(19.4927, 10.5722, 43.1247)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EB2 #56B22E
analogous
#482EB2 #8A2EB2 #B22E98
triadic
#8A2EB2 #B28A2E #2EB28A
tetradic
#8A2EB2 #B2482E #56B22E #2E98B2
square
#8A2EB2 #B2482E #56B22E #2E98B2
split-complementary
#8A2EB2 #98B22E #2EB248
monochromatic
#3F1551 #642181 #8A2EB2 #A94CD1 #C07DDD

Accessibility & contrast

On white

6.74
#8A2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A2EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EB2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EB2#FFFFFF#000000##FFFFFF
##8A2EB21.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#215DAF
Tritanopia (blue-blind)
#864B6E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2eb2;
/* rgb */ color: rgb(138, 46, 178);
/* oklch */ color: oklch(49.9% 0.203 313.3);
Tailwind
colors: {
  custom: {
    50: '#b070ca',
    500: '#8a2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eb2;
$custom-light: #b070ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eb2",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 281.818,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49886,
    "c": 0.20293,
    "h": 313.3
  },
  "luminance": 0.10572
}

Semantic roles & 50–950 ramp

primary
#8A2EB2
secondary
#8EC676
accent
#E24675
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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