#8A2E7B#8A2E7B

#8A2E7B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.5% C 0.154 H 334.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8A2E7B
RGBrgb(138, 46, 123)
HSLhsl(310, 50%, 36%)
HSVhsv(310, 67%, 54%)
CMYKcmyk(0%, 66.7%, 10.9%, 45.9%)
CIE-LABlab(35.57, 48.10, -24.08)
CIE-LCHlch(35.57, 53.79, 333.41°)
OKLaboklab(46.48% 0.1399 -0.0656)
OKLCHoklch(46.48% 0.154 334.9)
XYZxyz(15.0335, 8.7886, 19.6396)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E7B #2E8A3D
analogous
#6B2E8A #8A2E7B #8A2E4D
triadic
#8A2E7B #7B8A2E #2E7B8A
tetradic
#8A2E7B #8A6B2E #2E8A3D #2E4D8A
square
#8A2E7B #8A6B2E #2E8A3D #2E4D8A
split-complementary
#8A2E7B #4D8A2E #2E8A6B
monochromatic
#2E0F29 #5C1F52 #8A2E7B #B83DA4 #CC66BC

Accessibility & contrast

On white

7.62
#8A2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A2E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E7B
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E7B#FFFFFF#000000##FFFFFF
##8A2E7B1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4B7D
Deuteranopia (green-blind)
#4C5979
Tritanopia (blue-blind)
#913450
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2e7b;
/* rgb */ color: rgb(138, 46, 123);
/* oklch */ color: oklch(46.5% 0.154 334.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea1',
    500: '#8a2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e7b;
$custom-light: #af6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e7b",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 309.783,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46481,
    "c": 0.15449,
    "h": 334.9
  },
  "luminance": 0.08787
}

Semantic roles & 50–950 ramp

primary
#8A2E7B
secondary
#61B36E
accent
#DA654E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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