#8A2F98#8A2F98

#8A2F98 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.2% C 0.178 H 322.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#8A2F98
RGBrgb(138, 47, 152)
HSLhsl(292, 53%, 39%)
HSVhsv(292, 69%, 60%)
CMYKcmyk(9.2%, 69.1%, 0%, 40.4%)
CIE-LABlab(37.31, 52.85, -39.19)
CIE-LCHlch(37.31, 65.80, 323.44°)
OKLaboklab(48.25% 0.1403 -0.1093)
OKLCHoklch(48.25% 0.178 322.1)
XYZxyz(17.1646, 9.7042, 30.6687)
Luminance0.0970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F98 #3D982F
analogous
#562F98 #8A2F98 #982F72
triadic
#8A2F98 #988A2F #2F988A
tetradic
#8A2F98 #98562F #3D982F #2F7298
square
#8A2F98 #98562F #3D982F #2F7298
split-complementary
#8A2F98 #72982F #2F9856
monochromatic
#35123B #602169 #8A2F98 #B240C4 #C56FD2

Accessibility & contrast

On white

7.14
#8A2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A2F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F98
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F98#FFFFFF#000000##FFFFFF
##8A2F981.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519B
Deuteranopia (green-blind)
#3D5B95
Tritanopia (blue-blind)
#8C4160
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f98;
/* rgb */ color: rgb(138, 47, 152);
/* oklch */ color: oklch(48.2% 0.178 322.1);
Tailwind
colors: {
  custom: {
    50: '#af6fb7',
    500: '#8a2f98',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f98;
$custom-light: #af6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f98",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 292,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48246,
    "c": 0.17787,
    "h": 322.1
  },
  "luminance": 0.09703
}

Semantic roles & 50–950 ramp

primary
#8A2F98
secondary
#74BA69
accent
#DC4C5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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