#8A2E7F#8A2E7F

#8A2E7F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.158 H 332.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8A2E7F
RGBrgb(138, 46, 127)
HSLhsl(307, 50%, 36%)
HSVhsv(307, 67%, 54%)
CMYKcmyk(0%, 66.7%, 8%, 45.9%)
CIE-LABlab(35.77, 48.77, -26.26)
CIE-LCHlch(35.77, 55.39, 331.70°)
OKLaboklab(46.69% 0.1404 -0.0719)
OKLCHoklch(46.69% 0.158 332.9)
XYZxyz(15.2890, 8.8908, 20.9854)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E7F #2E8A39
analogous
#672E8A #8A2E7F #8A2E51
triadic
#8A2E7F #7F8A2E #2E7F8A
tetradic
#8A2E7F #8A672E #2E8A39 #2E518A
square
#8A2E7F #8A672E #2E8A39 #2E518A
split-complementary
#8A2E7F #518A2E #2E8A67
monochromatic
#2E0F2B #5C1F55 #8A2E7F #B83DA9 #CC66C0

Accessibility & contrast

On white

7.56
#8A2E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A2E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E7F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E7F#FFFFFF#000000##FFFFFF
##8A2E7F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2e7f;
/* rgb */ color: rgb(138, 46, 127);
/* oklch */ color: oklch(46.7% 0.158 332.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea4',
    500: '#8a2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e7f;
$custom-light: #af6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e7f",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 307.174,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46691,
    "c": 0.15769,
    "h": 332.9
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#8A2E7F
secondary
#61B36B
accent
#DA5F4E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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