#8A287B#8A287B

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

Color values

HEX#8A287B
RGBrgb(138, 40, 123)
HSLhsl(309, 55%, 35%)
HSVhsv(309, 71%, 54%)
CMYKcmyk(0%, 71%, 10.9%, 45.9%)
CIE-LABlab(34.71, 50.53, -25.44)
CIE-LCHlch(34.71, 56.57, 333.28°)
OKLaboklab(45.85% 0.147 -0.0695)
OKLCHoklch(45.85% 0.163 334.7)
XYZxyz(14.8153, 8.3522, 19.5669)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A287B #288A37
analogous
#68288A #8A287B #8A284A
triadic
#8A287B #7B8A28 #287B8A
tetradic
#8A287B #8A6828 #288A37 #284A8A
square
#8A287B #8A6828 #288A37 #284A8A
split-complementary
#8A287B #4A8A28 #288A68
monochromatic
#2B0C26 #5B1A51 #8A287B #B936A5 #D05DBE

Accessibility & contrast

On white

7.86
#8A287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A287B
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A287B#FFFFFF#000000##FFFFFF
##8A287B1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487D
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#91304E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a287b;
/* rgb */ color: rgb(138, 40, 123);
/* oklch */ color: oklch(45.9% 0.163 334.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba1',
    500: '#8a287b',
    950: '#000000',
  },
}
SCSS
$custom: #8a287b;
$custom-light: #af6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a287b",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 309.184,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45851,
    "c": 0.16259,
    "h": 334.7
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#8A287B
secondary
#59B567
accent
#DE6049
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A287B

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

Preview Lab → · Contrast checker → · Palette generator →

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