#8A278E#8A278E

#8A278E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.179 H 326.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8A278E
RGBrgb(138, 39, 142)
HSLhsl(298, 57%, 35%)
HSVhsv(298, 73%, 56%)
CMYKcmyk(2.8%, 72.5%, 0%, 44.3%)
CIE-LABlab(35.61, 54.12, -35.79)
CIE-LCHlch(35.61, 64.88, 326.53°)
OKLaboklab(46.84% 0.149 -0.0994)
OKLCHoklch(46.84% 0.179 326.3)
XYZxyz(16.0889, 8.8084, 26.4387)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A278E #2B8E27
analogous
#56278E #8A278E #8E275E
triadic
#8A278E #8E8A27 #278E8A
tetradic
#8A278E #8E5627 #2B8E27 #275E8E
square
#8A278E #8E5627 #2B8E27 #275E8E
split-complementary
#8A278E #5E8E27 #278E56
monochromatic
#2D0D2E #5B1A5E #8A278E #B934BE #CE5DD2

Accessibility & contrast

On white

7.60
#8A278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A278E
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A278E#FFFFFF#000000##FFFFFF
##8A278E1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#3F588B
Tritanopia (blue-blind)
#8E3858
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a278e;
/* rgb */ color: rgb(138, 39, 142);
/* oklch */ color: oklch(46.8% 0.179 326.3);
Tailwind
colors: {
  custom: {
    50: '#af6baf',
    500: '#8a278e',
    950: '#000000',
  },
}
SCSS
$custom: #8a278e;
$custom-light: #af6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a278e",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 297.67,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46841,
    "c": 0.17909,
    "h": 326.3
  },
  "luminance": 0.08807
}

Semantic roles & 50–950 ramp

primary
#8A278E
secondary
#5DB859
accent
#E0484E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A278E

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

Preview Lab → · Contrast checker → · Palette generator →

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