#8A279B#8A279B

#8A279B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.190 H 321.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A279B
RGBrgb(138, 39, 155)
HSLhsl(291, 60%, 38%)
HSVhsv(291, 75%, 61%)
CMYKcmyk(11%, 74.8%, 0%, 39.2%)
CIE-LABlab(36.41, 56.49, -42.45)
CIE-LCHlch(36.41, 70.66, 323.08°)
OKLaboklab(47.66% 0.1484 -0.1188)
OKLCHoklch(47.66% 0.19 321.3)
XYZxyz(17.1225, 9.2218, 31.8821)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A279B #389B27
analogous
#50279B #8A279B #9B2772
triadic
#8A279B #9B8A27 #279B8A
tetradic
#8A279B #9B5027 #389B27 #27729B
square
#8A279B #9B5027 #389B27 #27729B
split-complementary
#8A279B #729B27 #279B50
monochromatic
#330E39 #5E1B6A #8A279B #B533CC #C764D8

Accessibility & contrast

On white

7.38
#8A279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A279B
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A279B#FFFFFF#000000##FFFFFF
##8A279B1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#355998
Tritanopia (blue-blind)
#8B3D5F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a279b;
/* rgb */ color: rgb(138, 39, 155);
/* oklch */ color: oklch(47.7% 0.190 321.3);
Tailwind
colors: {
  custom: {
    50: '#b06cb9',
    500: '#8a279b',
    950: '#000000',
  },
}
SCSS
$custom: #8a279b;
$custom-light: #b06cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a279b",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 291.207,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47664,
    "c": 0.19012,
    "h": 321.3
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#8A279B
secondary
#6EBE60
accent
#E3455C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A279B

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

Preview Lab → · Contrast checker → · Palette generator →

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