#8A2F9E#8A2F9E

#8A2F9E is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.183 H 319.8°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A2F9E
RGBrgb(138, 47, 158)
HSLhsl(289, 54%, 40%)
HSVhsv(289, 70%, 62%)
CMYKcmyk(12.7%, 70.3%, 0%, 38%)
CIE-LABlab(37.67, 54.01, -42.24)
CIE-LCHlch(37.67, 68.57, 321.97°)
OKLaboklab(48.63% 0.1401 -0.1182)
OKLCHoklch(48.63% 0.183 319.8)
XYZxyz(17.6685, 9.9058, 33.3225)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F9E #439E2F
analogous
#522F9E #8A2F9E #9E2F7A
triadic
#8A2F9E #9E8A2F #2F9E8A
tetradic
#8A2F9E #9E522F #439E2F #2F7A9E
square
#8A2F9E #9E522F #439E2F #2F7A9E
split-complementary
#8A2F9E #7A9E2F #2F9E52
monochromatic
#381340 #61216F #8A2F9E #AF43C7 #C372D5

Accessibility & contrast

On white

7.04
#8A2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F9E
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F9E#FFFFFF#000000##FFFFFF
##8A2F9E1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#385C9B
Tritanopia (blue-blind)
#8A4463
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2f9e;
/* rgb */ color: rgb(138, 47, 158);
/* oklch */ color: oklch(48.6% 0.183 319.8);
Tailwind
colors: {
  custom: {
    50: '#af70bb',
    500: '#8a2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f9e;
$custom-light: #af70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f9e",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 289.189,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48627,
    "c": 0.18332,
    "h": 319.8
  },
  "luminance": 0.09905
}

Semantic roles & 50–950 ramp

primary
#8A2F9E
secondary
#7BBD6C
accent
#DE4A65
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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