#8A2E7E#8A2E7E

#8A2E7E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.6% C 0.157 H 333.4°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8A2E7E
RGBrgb(138, 46, 126)
HSLhsl(308, 50%, 36%)
HSVhsv(308, 67%, 54%)
CMYKcmyk(0%, 66.7%, 8.7%, 45.9%)
CIE-LABlab(35.72, 48.60, -25.72)
CIE-LCHlch(35.72, 54.98, 332.11°)
OKLaboklab(46.64% 0.1402 -0.0703)
OKLCHoklch(46.64% 0.157 333.4)
XYZxyz(15.2242, 8.8648, 20.6439)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E7E #2E8A3A
analogous
#682E8A #8A2E7E #8A2E50
triadic
#8A2E7E #7E8A2E #2E7E8A
tetradic
#8A2E7E #8A682E #2E8A3A #2E508A
square
#8A2E7E #8A682E #2E8A3A #2E508A
split-complementary
#8A2E7E #508A2E #2E8A68
monochromatic
#2E0F2A #5C1F54 #8A2E7E #B83DA8 #CC66BF

Accessibility & contrast

On white

7.57
#8A2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E7E
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E7E#FFFFFF#000000##FFFFFF
##8A2E7E1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4B80
Deuteranopia (green-blind)
#4A597C
Tritanopia (blue-blind)
#903652
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2e7e;
/* rgb */ color: rgb(138, 46, 126);
/* oklch */ color: oklch(46.6% 0.157 333.4);
Tailwind
colors: {
  custom: {
    50: '#af6ea3',
    500: '#8a2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e7e;
$custom-light: #af6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e7e",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 307.826,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.15688,
    "h": 333.4
  },
  "luminance": 0.08864
}

Semantic roles & 50–950 ramp

primary
#8A2E7E
secondary
#61B36C
accent
#DA604E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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