#8A2F91#8A2F91

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

Color values

HEX#8A2F91
RGBrgb(138, 47, 145)
HSLhsl(296, 51%, 38%)
HSVhsv(296, 68%, 57%)
CMYKcmyk(4.8%, 67.6%, 0%, 43.1%)
CIE-LABlab(36.90, 51.53, -35.59)
CIE-LCHlch(36.90, 62.63, 325.37°)
OKLaboklab(47.82% 0.1403 -0.0988)
OKLCHoklch(47.82% 0.172 324.8)
XYZxyz(16.6082, 9.4816, 27.7379)
Luminance0.0948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F91 #36912F
analogous
#592F91 #8A2F91 #912F67
triadic
#8A2F91 #918A2F #2F918A
tetradic
#8A2F91 #91592F #36912F #2F6791
square
#8A2F91 #91592F #36912F #2F6791
split-complementary
#8A2F91 #67912F #2F9159
monochromatic
#321135 #5E2063 #8A2F91 #B63EBF #C86BCF

Accessibility & contrast

On white

7.25
#8A2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2F91
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F91#FFFFFF#000000##FFFFFF
##8A2F911.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5094
Deuteranopia (green-blind)
#415B8E
Tritanopia (blue-blind)
#8D3E5C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f91;
/* rgb */ color: rgb(138, 47, 145);
/* oklch */ color: oklch(47.8% 0.172 324.8);
Tailwind
colors: {
  custom: {
    50: '#af6fb2',
    500: '#8a2f91',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f91;
$custom-light: #af6fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f91",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 295.714,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47818,
    "c": 0.17162,
    "h": 324.8
  },
  "luminance": 0.09481
}

Semantic roles & 50–950 ramp

primary
#8A2F91
secondary
#6BB665
accent
#DB4D57
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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