#8A2F90#8A2F90

#8A2F90 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.171 H 325.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A2F90
RGBrgb(138, 47, 144)
HSLhsl(296, 51%, 37%)
HSVhsv(296, 67%, 56%)
CMYKcmyk(4.2%, 67.4%, 0%, 43.5%)
CIE-LABlab(36.84, 51.35, -35.07)
CIE-LCHlch(36.84, 62.18, 325.67°)
OKLaboklab(47.76% 0.1403 -0.0973)
OKLCHoklch(47.76% 0.171 325.2)
XYZxyz(16.5314, 9.4509, 27.3336)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F90 #35902F
analogous
#5A2F90 #8A2F90 #902F65
triadic
#8A2F90 #908A2F #2F908A
tetradic
#8A2F90 #905A2F #35902F #2F6590
square
#8A2F90 #905A2F #35902F #2F6590
split-complementary
#8A2F90 #65902F #2F905A
monochromatic
#321134 #5E2062 #8A2F90 #B63EBE #C86BCF

Accessibility & contrast

On white

7.27
#8A2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F90
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F90#FFFFFF#000000##FFFFFF
##8A2F901.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4F93
Deuteranopia (green-blind)
#425B8E
Tritanopia (blue-blind)
#8D3E5B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f90;
/* rgb */ color: rgb(138, 47, 144);
/* oklch */ color: oklch(47.8% 0.171 325.2);
Tailwind
colors: {
  custom: {
    50: '#af6fb1',
    500: '#8a2f90',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f90;
$custom-light: #af6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f90",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 296.289,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47759,
    "c": 0.17074,
    "h": 325.2
  },
  "luminance": 0.0945
}

Semantic roles & 50–950 ramp

primary
#8A2F90
secondary
#6AB665
accent
#DA4E56
background
#FBF7FA
surface
#F6EDF5
border
#D0C8CF
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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