#8A2F92#8A2F92

#8A2F92 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.172 H 324.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8A2F92
RGBrgb(138, 47, 146)
HSLhsl(295, 51%, 38%)
HSVhsv(295, 68%, 57%)
CMYKcmyk(5.5%, 67.8%, 0%, 42.7%)
CIE-LABlab(36.95, 51.72, -36.11)
CIE-LCHlch(36.95, 63.08, 325.08°)
OKLaboklab(47.88% 0.1403 -0.1003)
OKLCHoklch(47.88% 0.173 324.4)
XYZxyz(16.6856, 9.5126, 28.1458)
Luminance0.0951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F92 #37922F
analogous
#592F92 #8A2F92 #922F68
triadic
#8A2F92 #928A2F #2F928A
tetradic
#8A2F92 #92592F #37922F #2F6892
square
#8A2F92 #92592F #37922F #2F6892
split-complementary
#8A2F92 #68922F #2F9259
monochromatic
#321135 #5E2064 #8A2F92 #B63EC0 #C86CD0

Accessibility & contrast

On white

7.24
#8A2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F92
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F92#FFFFFF#000000##FFFFFF
##8A2F921.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195095
Deuteranopia (green-blind)
#415B8F
Tritanopia (blue-blind)
#8D3F5C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f92;
/* rgb */ color: rgb(138, 47, 146);
/* oklch */ color: oklch(47.9% 0.172 324.4);
Tailwind
colors: {
  custom: {
    50: '#af6fb2',
    500: '#8a2f92',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f92;
$custom-light: #af6fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f92",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 295.152,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47878,
    "c": 0.1725,
    "h": 324.4
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#8A2F92
secondary
#6DB766
accent
#DB4D58
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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