#8A2899#8A2899

#8A2899 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.187 H 322.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A2899
RGBrgb(138, 40, 153)
HSLhsl(292, 59%, 38%)
HSVhsv(292, 74%, 60%)
CMYKcmyk(9.8%, 73.9%, 0%, 40%)
CIE-LABlab(36.41, 55.76, -41.24)
CIE-LCHlch(36.41, 69.35, 323.51°)
OKLaboklab(47.62% 0.1476 -0.1153)
OKLCHoklch(47.62% 0.187 322)
XYZxyz(16.9892, 9.2217, 31.0159)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2899 #379928
analogous
#512899 #8A2899 #992870
triadic
#8A2899 #998A28 #28998A
tetradic
#8A2899 #995128 #379928 #287099
square
#8A2899 #995128 #379928 #287099
split-complementary
#8A2899 #709928 #289951
monochromatic
#320F38 #5E1B68 #8A2899 #B635CA #C865D7

Accessibility & contrast

On white

7.38
#8A2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2899
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2899#FFFFFF#000000##FFFFFF
##8A28991.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#385996
Tritanopia (blue-blind)
#8C3D5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2899;
/* rgb */ color: rgb(138, 40, 153);
/* oklch */ color: oklch(47.6% 0.187 322.0);
Tailwind
colors: {
  custom: {
    50: '#b06cb8',
    500: '#8a2899',
    950: '#000000',
  },
}
SCSS
$custom: #8a2899;
$custom-light: #b06cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2899",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 292.035,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47623,
    "c": 0.18727,
    "h": 322
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#8A2899
secondary
#6DBD60
accent
#E2465B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2899

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

Preview Lab → · Contrast checker → · Palette generator →

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