#8A2F7E#8A2F7E

#8A2F7E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.155 H 333.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#8A2F7E
RGBrgb(138, 47, 126)
HSLhsl(308, 49%, 36%)
HSVhsv(308, 66%, 54%)
CMYKcmyk(0%, 65.9%, 8.7%, 45.9%)
CIE-LABlab(35.88, 48.17, -25.48)
CIE-LCHlch(35.88, 54.50, 332.12°)
OKLaboklab(46.75% 0.139 -0.0696)
OKLCHoklch(46.75% 0.155 333.4)
XYZxyz(15.2637, 8.9439, 20.6570)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F7E #2F8A3B
analogous
#692F8A #8A2F7E #8A2F51
triadic
#8A2F7E #7E8A2F #2F7E8A
tetradic
#8A2F7E #8A692F #2F8A3B #2F518A
square
#8A2F7E #8A692F #2F8A3B #2F518A
split-complementary
#8A2F7E #518A2F #2F8A69
monochromatic
#2F102B #5C1F54 #8A2F7E #B83FA8 #CC68BE

Accessibility & contrast

On white

7.53
#8A2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F7E
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F7E#FFFFFF#000000##FFFFFF
##8A2F7E1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C80
Deuteranopia (green-blind)
#4B597C
Tritanopia (blue-blind)
#903652
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2f7e;
/* rgb */ color: rgb(138, 47, 126);
/* oklch */ color: oklch(46.7% 0.155 333.4);
Tailwind
colors: {
  custom: {
    50: '#af6fa3',
    500: '#8a2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f7e;
$custom-light: #af6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f7e",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 307.912,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46749,
    "c": 0.15546,
    "h": 333.4
  },
  "luminance": 0.08943
}

Semantic roles & 50–950 ramp

primary
#8A2F7E
secondary
#62B36D
accent
#D9614F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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