#8A268D#8A268D

#8A268D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.179 H 326.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8A268D
RGBrgb(138, 38, 141)
HSLhsl(298, 58%, 35%)
HSVhsv(298, 73%, 55%)
CMYKcmyk(2.1%, 73%, 0%, 44.7%)
CIE-LABlab(35.43, 54.30, -35.47)
CIE-LCHlch(35.43, 64.86, 326.85°)
OKLaboklab(46.69% 0.15 -0.0984)
OKLCHoklch(46.69% 0.179 326.7)
XYZxyz(15.9818, 8.7137, 26.0343)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A268D #298D26
analogous
#56268D #8A268D #8D265D
triadic
#8A268D #8D8A26 #268D8A
tetradic
#8A268D #8D5626 #298D26 #265D8D
square
#8A268D #8D5626 #298D26 #265D8D
split-complementary
#8A268D #5D8D26 #268D56
monochromatic
#2C0C2D #5B195D #8A268D #B933BD #CF5BD3

Accessibility & contrast

On white

7.66
#8A268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A268D
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A268D#FFFFFF#000000##FFFFFF
##8A268D1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B90
Deuteranopia (green-blind)
#3F588A
Tritanopia (blue-blind)
#8E3657
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a268d;
/* rgb */ color: rgb(138, 38, 141);
/* oklch */ color: oklch(46.7% 0.179 326.7);
Tailwind
colors: {
  custom: {
    50: '#af6baf',
    500: '#8a268d',
    950: '#000000',
  },
}
SCSS
$custom: #8a268d;
$custom-light: #af6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a268d",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 298.252,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46689,
    "c": 0.17942,
    "h": 326.7
  },
  "luminance": 0.08713
}

Semantic roles & 50–950 ramp

primary
#8A268D
secondary
#5AB857
accent
#E1474B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A268D

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

Preview Lab → · Contrast checker → · Palette generator →

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