#8A2E7C#8A2E7C

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

Color values

HEX#8A2E7C
RGBrgb(138, 46, 124)
HSLhsl(309, 50%, 36%)
HSVhsv(309, 67%, 54%)
CMYKcmyk(0%, 66.7%, 10.1%, 45.9%)
CIE-LABlab(35.62, 48.27, -24.63)
CIE-LCHlch(35.62, 54.19, 332.97°)
OKLaboklab(46.53% 0.14 -0.0672)
OKLCHoklch(46.53% 0.155 334.4)
XYZxyz(15.0964, 8.8137, 19.9710)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E7C #2E8A3C
analogous
#6A2E8A #8A2E7C #8A2E4E
triadic
#8A2E7C #7C8A2E #2E7C8A
tetradic
#8A2E7C #8A6A2E #2E8A3C #2E4E8A
square
#8A2E7C #8A6A2E #2E8A3C #2E4E8A
split-complementary
#8A2E7C #4E8A2E #2E8A6A
monochromatic
#2E0F2A #5C1F53 #8A2E7C #B83DA5 #CC66BD

Accessibility & contrast

On white

7.60
#8A2E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2E7C
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E7C#FFFFFF#000000##FFFFFF
##8A2E7C1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4B7E
Deuteranopia (green-blind)
#4B597A
Tritanopia (blue-blind)
#903551
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2e7c;
/* rgb */ color: rgb(138, 46, 124);
/* oklch */ color: oklch(46.5% 0.155 334.4);
Tailwind
colors: {
  custom: {
    50: '#af6ea2',
    500: '#8a2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e7c;
$custom-light: #af6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e7c",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 309.13,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46533,
    "c": 0.15528,
    "h": 334.4
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#8A2E7C
secondary
#61B36D
accent
#DA634E
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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