#8A2B8E#8A2B8E

#8A2B8E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.174 H 326.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8A2B8E
RGBrgb(138, 43, 142)
HSLhsl(298, 54%, 36%)
HSVhsv(298, 70%, 56%)
CMYKcmyk(2.8%, 69.7%, 0%, 44.3%)
CIE-LABlab(36.15, 52.60, -34.94)
CIE-LCHlch(36.15, 63.15, 326.41°)
OKLaboklab(47.22% 0.1448 -0.0969)
OKLCHoklch(47.22% 0.174 326.2)
XYZxyz(16.2273, 9.0851, 26.4848)
Luminance0.0908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B8E #2F8E2B
analogous
#592B8E #8A2B8E #8E2B61
triadic
#8A2B8E #8E8A2B #2B8E8A
tetradic
#8A2B8E #8E592B #2F8E2B #2B618E
square
#8A2B8E #8E592B #2F8E2B #2B618E
split-complementary
#8A2B8E #618E2B #2B8E59
monochromatic
#2F0F30 #5C1D5F #8A2B8E #B839BD #CC63D0

Accessibility & contrast

On white

7.46
#8A2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B8E
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B8E#FFFFFF#000000##FFFFFF
##8A2B8E1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D91
Deuteranopia (green-blind)
#41598B
Tritanopia (blue-blind)
#8E3A59
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2b8e;
/* rgb */ color: rgb(138, 43, 142);
/* oklch */ color: oklch(47.2% 0.174 326.2);
Tailwind
colors: {
  custom: {
    50: '#af6daf',
    500: '#8a2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b8e;
$custom-light: #af6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b8e",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 297.576,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.17422,
    "h": 326.2
  },
  "luminance": 0.09084
}

Semantic roles & 50–950 ramp

primary
#8A2B8E
secondary
#62B65F
accent
#DD4B51
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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