#8A279C#8A279C

#8A279C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.191 H 321.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8A279C
RGBrgb(138, 39, 156)
HSLhsl(291, 60%, 38%)
HSVhsv(291, 75%, 61%)
CMYKcmyk(11.5%, 75%, 0%, 38.8%)
CIE-LABlab(36.47, 56.68, -42.95)
CIE-LCHlch(36.47, 71.12, 322.84°)
OKLaboklab(47.73% 0.1483 -0.1203)
OKLCHoklch(47.73% 0.191 321)
XYZxyz(17.2068, 9.2555, 32.3262)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A279C #399C27
analogous
#4F279C #8A279C #9C2773
triadic
#8A279C #9C8A27 #279C8A
tetradic
#8A279C #9C4F27 #399C27 #27739C
square
#8A279C #9C4F27 #399C27 #27739C
split-complementary
#8A279C #739C27 #279C4F
monochromatic
#330F3A #5F1B6B #8A279C #B534CC #C765D8

Accessibility & contrast

On white

7.37
#8A279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A279C
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A279C#FFFFFF#000000##FFFFFF
##8A279C1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#355999
Tritanopia (blue-blind)
#8B3E60
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a279c;
/* rgb */ color: rgb(138, 39, 156);
/* oklch */ color: oklch(47.7% 0.191 321.0);
Tailwind
colors: {
  custom: {
    50: '#b06cba',
    500: '#8a279c',
    950: '#000000',
  },
}
SCSS
$custom: #8a279c;
$custom-light: #b06cba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a279c",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 290.769,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47729,
    "c": 0.19098,
    "h": 321
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#8A279C
secondary
#6FBE61
accent
#E3455D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A279C

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

Preview Lab → · Contrast checker → · Palette generator →

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