#8A2883#8A2883

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

Color values

HEX#8A2883
RGBrgb(138, 40, 131)
HSLhsl(304, 55%, 35%)
HSVhsv(304, 71%, 54%)
CMYKcmyk(0%, 71%, 5.1%, 45.9%)
CIE-LABlab(35.12, 51.84, -29.77)
CIE-LCHlch(35.12, 59.78, 330.14°)
OKLaboklab(46.29% 0.1477 -0.0819)
OKLCHoklch(46.29% 0.169 331)
XYZxyz(15.3367, 8.5607, 22.3129)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2883 #288A2F
analogous
#60288A #8A2883 #8A2852
triadic
#8A2883 #838A28 #28838A
tetradic
#8A2883 #8A6028 #288A2F #28528A
square
#8A2883 #8A6028 #288A2F #28528A
split-complementary
#8A2883 #528A28 #288A60
monochromatic
#2B0C29 #5B1A56 #8A2883 #B936B0 #D05DC8

Accessibility & contrast

On white

7.74
#8A2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2883
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2883#FFFFFF#000000##FFFFFF
##8A28831.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A86
Deuteranopia (green-blind)
#455781
Tritanopia (blue-blind)
#903352
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2883;
/* rgb */ color: rgb(138, 40, 131);
/* oklch */ color: oklch(46.3% 0.169 331.0);
Tailwind
colors: {
  custom: {
    50: '#af6ba7',
    500: '#8a2883',
    950: '#000000',
  },
}
SCSS
$custom: #8a2883;
$custom-light: #af6ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2883",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 304.286,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46289,
    "c": 0.16887,
    "h": 331
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#8A2883
secondary
#59B55F
accent
#DE5449
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2883

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

Preview Lab → · Contrast checker → · Palette generator →

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