#8A2B7E#8A2B7E

#8A2B7E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.161 H 333.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2B7E
RGBrgb(138, 43, 126)
HSLhsl(308, 52%, 35%)
HSVhsv(308, 69%, 54%)
CMYKcmyk(0%, 68.8%, 8.7%, 45.9%)
CIE-LABlab(35.28, 49.84, -26.41)
CIE-LCHlch(35.28, 56.40, 332.08°)
OKLaboklab(46.32% 0.1439 -0.0723)
OKLCHoklch(46.32% 0.161 333.3)
XYZxyz(15.1111, 8.6386, 20.6062)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B7E #2B8A37
analogous
#662B8A #8A2B7E #8A2B4E
triadic
#8A2B7E #7E8A2B #2B7E8A
tetradic
#8A2B7E #8A662B #2B8A37 #2B4E8A
square
#8A2B7E #8A662B #2B8A37 #2B4E8A
split-complementary
#8A2B7E #4E8A2B #2B8A66
monochromatic
#2D0E29 #5B1C53 #8A2B7E #B93AA9 #CE61C0

Accessibility & contrast

On white

7.70
#8A2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B7E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B7E#FFFFFF#000000##FFFFFF
##8A2B7E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#49587C
Tritanopia (blue-blind)
#903351
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2b7e;
/* rgb */ color: rgb(138, 43, 126);
/* oklch */ color: oklch(46.3% 0.161 333.3);
Tailwind
colors: {
  custom: {
    50: '#af6da3',
    500: '#8a2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b7e;
$custom-light: #af6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b7e",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 307.579,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46316,
    "c": 0.161,
    "h": 333.3
  },
  "luminance": 0.08637
}

Semantic roles & 50–950 ramp

primary
#8A2B7E
secondary
#5DB468
accent
#DC5E4C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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