#8A279D#8A279D

#8A279D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.192 H 320.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8A279D
RGBrgb(138, 39, 157)
HSLhsl(290, 60%, 38%)
HSVhsv(290, 75%, 62%)
CMYKcmyk(12.1%, 75.2%, 0%, 38.4%)
CIE-LABlab(36.54, 56.87, -43.46)
CIE-LCHlch(36.54, 71.57, 322.61°)
OKLaboklab(47.8% 0.1483 -0.1217)
OKLCHoklch(47.8% 0.192 320.6)
XYZxyz(17.2918, 9.2895, 32.7740)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A279D #3A9D27
analogous
#4F279D #8A279D #9D2775
triadic
#8A279D #9D8A27 #279D8A
tetradic
#8A279D #9D4F27 #3A9D27 #27759D
square
#8A279D #9D4F27 #3A9D27 #27759D
split-complementary
#8A279D #759D27 #279D4F
monochromatic
#340F3B #5F1B6C #8A279D #B435CD #C666D9

Accessibility & contrast

On white

7.35
#8A279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A279D
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A279D#FFFFFF#000000##FFFFFF
##8A279D1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#34599A
Tritanopia (blue-blind)
#8B3E60
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a279d;
/* rgb */ color: rgb(138, 39, 157);
/* oklch */ color: oklch(47.8% 0.192 320.6);
Tailwind
colors: {
  custom: {
    50: '#b06cba',
    500: '#8a279d',
    950: '#000000',
  },
}
SCSS
$custom: #8a279d;
$custom-light: #b06cba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a279d",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 290.339,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47796,
    "c": 0.19184,
    "h": 320.6
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#8A279D
secondary
#70BF61
accent
#E3445E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A279D

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

Preview Lab → · Contrast checker → · Palette generator →

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