#8A2E8F#8A2E8F

#8A2E8F is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.171 H 325.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8A2E8F
RGBrgb(138, 46, 143)
HSLhsl(297, 51%, 37%)
HSVhsv(297, 68%, 56%)
CMYKcmyk(3.5%, 67.8%, 0%, 43.9%)
CIE-LABlab(36.63, 51.58, -34.78)
CIE-LCHlch(36.63, 62.21, 326.01°)
OKLaboklab(47.59% 0.1414 -0.0965)
OKLCHoklch(47.59% 0.171 325.7)
XYZxyz(16.4158, 9.3415, 26.9197)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E8F #338F2E
analogous
#5A2E8F #8A2E8F #8F2E64
triadic
#8A2E8F #8F8A2E #2E8F8A
tetradic
#8A2E8F #8F5A2E #338F2E #2E648F
square
#8A2E8F #8F5A2E #338F2E #2E648F
split-complementary
#8A2E8F #648F2E #2E8F5A
monochromatic
#311032 #5D1F61 #8A2E8F #B73DBD #C969CF

Accessibility & contrast

On white

7.32
#8A2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E8F
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E8F#FFFFFF#000000##FFFFFF
##8A2E8F1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#425A8D
Tritanopia (blue-blind)
#8D3D5B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2e8f;
/* rgb */ color: rgb(138, 46, 143);
/* oklch */ color: oklch(47.6% 0.171 325.7);
Tailwind
colors: {
  custom: {
    50: '#af6fb0',
    500: '#8a2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e8f;
$custom-light: #af6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e8f",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 296.907,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47593,
    "c": 0.17119,
    "h": 325.7
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

primary
#8A2E8F
secondary
#67B663
accent
#DB4D54
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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