#8A2F9F#8A2F9F

#8A2F9F is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.184 H 319.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8A2F9F
RGBrgb(138, 47, 159)
HSLhsl(289, 54%, 40%)
HSVhsv(289, 70%, 62%)
CMYKcmyk(13.2%, 70.4%, 0%, 37.6%)
CIE-LABlab(37.74, 54.21, -42.74)
CIE-LCHlch(37.74, 69.03, 321.74°)
OKLaboklab(48.69% 0.14 -0.1197)
OKLCHoklch(48.69% 0.184 319.5)
XYZxyz(17.7550, 9.9404, 33.7776)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F9F #449F2F
analogous
#522F9F #8A2F9F #9F2F7C
triadic
#8A2F9F #9F8A2F #2F9F8A
tetradic
#8A2F9F #9F522F #449F2F #2F7C9F
square
#8A2F9F #9F522F #449F2F #2F7C9F
split-complementary
#8A2F9F #7C9F2F #2F9F52
monochromatic
#381341 #612170 #8A2F9F #AF44C8 #C373D6

Accessibility & contrast

On white

7.03
#8A2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F9F
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F9F#FFFFFF#000000##FFFFFF
##8A2F9F1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#375C9C
Tritanopia (blue-blind)
#8A4464
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2f9f;
/* rgb */ color: rgb(138, 47, 159);
/* oklch */ color: oklch(48.7% 0.184 319.5);
Tailwind
colors: {
  custom: {
    50: '#b070bc',
    500: '#8a2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f9f;
$custom-light: #b070bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f9f",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 288.75,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48692,
    "c": 0.18422,
    "h": 319.5
  },
  "luminance": 0.0994
}

Semantic roles & 50–950 ramp

primary
#8A2F9F
secondary
#7CBD6D
accent
#DE4A66
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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