#8A287C#8A287C

#8A287C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.163 H 334.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8A287C
RGBrgb(138, 40, 124)
HSLhsl(309, 55%, 35%)
HSVhsv(309, 71%, 54%)
CMYKcmyk(0%, 71%, 10.1%, 45.9%)
CIE-LABlab(34.76, 50.69, -25.98)
CIE-LCHlch(34.76, 56.96, 332.86°)
OKLaboklab(45.9% 0.1471 -0.071)
OKLCHoklch(45.9% 0.163 334.2)
XYZxyz(14.8782, 8.3773, 19.8983)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A287C #288A36
analogous
#67288A #8A287C #8A284B
triadic
#8A287C #7C8A28 #287C8A
tetradic
#8A287C #8A6728 #288A36 #284B8A
square
#8A287C #8A6728 #288A36 #284B8A
split-complementary
#8A287C #4B8A28 #288A67
monochromatic
#2B0C27 #5B1A51 #8A287C #B936A7 #D05DBF

Accessibility & contrast

On white

7.85
#8A287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A287C
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A287C#FFFFFF#000000##FFFFFF
##8A287C1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497E
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#91304E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a287c;
/* rgb */ color: rgb(138, 40, 124);
/* oklch */ color: oklch(45.9% 0.163 334.2);
Tailwind
colors: {
  custom: {
    50: '#af6ba2',
    500: '#8a287c',
    950: '#000000',
  },
}
SCSS
$custom: #8a287c;
$custom-light: #af6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a287c",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 308.571,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45904,
    "c": 0.16336,
    "h": 334.2
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#8A287C
secondary
#59B566
accent
#DE5F49
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A287C

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

Preview Lab → · Contrast checker → · Palette generator →

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