#8A2F95#8A2F95

#8A2F95 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.175 H 323.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8A2F95
RGBrgb(138, 47, 149)
HSLhsl(294, 52%, 38%)
HSVhsv(294, 68%, 58%)
CMYKcmyk(7.4%, 68.5%, 0%, 41.6%)
CIE-LABlab(37.13, 52.28, -37.66)
CIE-LCHlch(37.13, 64.43, 324.24°)
OKLaboklab(48.06% 0.1403 -0.1049)
OKLCHoklch(48.06% 0.175 323.2)
XYZxyz(16.9221, 9.6072, 29.3910)
Luminance0.0961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F95 #3A952F
analogous
#572F95 #8A2F95 #952F6D
triadic
#8A2F95 #958A2F #2F958A
tetradic
#8A2F95 #95572F #3A952F #2F6D95
square
#8A2F95 #95572F #3A952F #2F6D95
split-complementary
#8A2F95 #6D952F #2F9557
monochromatic
#341238 #5F2066 #8A2F95 #B43FC2 #C66DD1

Accessibility & contrast

On white

7.19
#8A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F95
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F95#FFFFFF#000000##FFFFFF
##8A2F951.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145198
Deuteranopia (green-blind)
#3F5B92
Tritanopia (blue-blind)
#8C405E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f95;
/* rgb */ color: rgb(138, 47, 149);
/* oklch */ color: oklch(48.1% 0.175 323.2);
Tailwind
colors: {
  custom: {
    50: '#af6fb4',
    500: '#8a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f95;
$custom-light: #af6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f95",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 293.529,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48061,
    "c": 0.17518,
    "h": 323.2
  },
  "luminance": 0.09606
}

Semantic roles & 50–950 ramp

primary
#8A2F95
secondary
#70B867
accent
#DB4C5C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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