#8A2D94#8A2D94

#8A2D94 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.177 H 323.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A2D94
RGBrgb(138, 45, 148)
HSLhsl(294, 53%, 38%)
HSVhsv(294, 70%, 58%)
CMYKcmyk(6.8%, 69.6%, 0%, 42%)
CIE-LABlab(36.78, 52.91, -37.60)
CIE-LCHlch(36.78, 64.91, 324.60°)
OKLaboklab(47.79% 0.1426 -0.1047)
OKLCHoklch(47.79% 0.177 323.7)
XYZxyz(16.7644, 9.4192, 28.9463)
Luminance0.0942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D94 #37942D
analogous
#572D94 #8A2D94 #942D6A
triadic
#8A2D94 #948A2D #2D948A
tetradic
#8A2D94 #94572D #37942D #2D6A94
square
#8A2D94 #94572D #37942D #2D6A94
split-complementary
#8A2D94 #6A942D #2D9457
monochromatic
#321036 #5E1F65 #8A2D94 #B63BC3 #C86AD2

Accessibility & contrast

On white

7.28
#8A2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A2D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D94
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D94#FFFFFF#000000##FFFFFF
##8A2D941.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114F97
Deuteranopia (green-blind)
#3E5A91
Tritanopia (blue-blind)
#8C3E5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2d94;
/* rgb */ color: rgb(138, 45, 148);
/* oklch */ color: oklch(47.8% 0.177 323.7);
Tailwind
colors: {
  custom: {
    50: '#af6eb4',
    500: '#8a2d94',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d94;
$custom-light: #af6eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d94",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 294.175,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47791,
    "c": 0.17688,
    "h": 323.7
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#8A2D94
secondary
#6DB864
accent
#DD4B59
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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