#8A2F9B#8A2F9B

#8A2F9B is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.4% C 0.181 H 320.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A2F9B
RGBrgb(138, 47, 155)
HSLhsl(291, 53%, 40%)
HSVhsv(291, 70%, 61%)
CMYKcmyk(11%, 69.7%, 0%, 39.2%)
CIE-LABlab(37.49, 53.43, -40.72)
CIE-LCHlch(37.49, 67.18, 322.69°)
OKLaboklab(48.44% 0.1402 -0.1138)
OKLCHoklch(48.44% 0.181 320.9)
XYZxyz(17.4135, 9.8038, 31.9791)
Luminance0.0980 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F9B #409B2F
analogous
#542F9B #8A2F9B #9B2F76
triadic
#8A2F9B #9B8A2F #2F9B8A
tetradic
#8A2F9B #9B542F #409B2F #2F769B
square
#8A2F9B #9B542F #409B2F #2F769B
split-complementary
#8A2F9B #769B2F #2F9B54
monochromatic
#36133D #60216C #8A2F9B #B142C6 #C471D4

Accessibility & contrast

On white

7.09
#8A2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F9B
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F9B#FFFFFF#000000##FFFFFF
##8A2F9B1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05529E
Deuteranopia (green-blind)
#3B5C98
Tritanopia (blue-blind)
#8B4261
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f9b;
/* rgb */ color: rgb(138, 47, 155);
/* oklch */ color: oklch(48.4% 0.181 320.9);
Tailwind
colors: {
  custom: {
    50: '#af70b9',
    500: '#8a2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f9b;
$custom-light: #af70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f9b",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 290.556,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48435,
    "c": 0.18059,
    "h": 320.9
  },
  "luminance": 0.09803
}

Semantic roles & 50–950 ramp

primary
#8A2F9B
secondary
#77BB6A
accent
#DD4B62
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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