#8A2B98#8A2B98

#8A2B98 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.183 H 322.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A2B98
RGBrgb(138, 43, 152)
HSLhsl(292, 56%, 38%)
HSVhsv(292, 72%, 60%)
CMYKcmyk(9.2%, 71.7%, 0%, 40.4%)
CIE-LABlab(36.74, 54.45, -40.10)
CIE-LCHlch(36.74, 67.62, 323.63°)
OKLaboklab(47.84% 0.1446 -0.112)
OKLCHoklch(47.84% 0.183 322.3)
XYZxyz(17.0120, 9.3990, 30.6178)
Luminance0.0940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B98 #39982B
analogous
#542B98 #8A2B98 #982B6F
triadic
#8A2B98 #988A2B #2B988A
tetradic
#8A2B98 #98542B #39982B #2B6F98
square
#8A2B98 #98542B #39982B #2B6F98
split-complementary
#8A2B98 #6F982B #2B9854
monochromatic
#331039 #5F1E68 #8A2B98 #B539C7 #C769D5

Accessibility & contrast

On white

7.29
#8A2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B98
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B98#FFFFFF#000000##FFFFFF
##8A2B981.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#8C3E5F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2b98;
/* rgb */ color: rgb(138, 43, 152);
/* oklch */ color: oklch(47.8% 0.183 322.3);
Tailwind
colors: {
  custom: {
    50: '#b06eb7',
    500: '#8a2b98',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b98;
$custom-light: #b06eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b98",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 292.294,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47841,
    "c": 0.18288,
    "h": 322.3
  },
  "luminance": 0.09398
}

Semantic roles & 50–950 ramp

primary
#8A2B98
secondary
#6FBB64
accent
#DF495C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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