#8A268B#8A268B

#8A268B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.178 H 327.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8A268B
RGBrgb(138, 38, 139)
HSLhsl(299, 57%, 35%)
HSVhsv(299, 73%, 55%)
CMYKcmyk(0.7%, 72.7%, 0%, 45.5%)
CIE-LABlab(35.31, 53.95, -34.42)
CIE-LCHlch(35.31, 64.00, 327.46°)
OKLaboklab(46.57% 0.15 -0.0954)
OKLCHoklch(46.57% 0.178 327.5)
XYZxyz(15.8343, 8.6547, 25.2576)
Luminance0.0865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A268B #278B26
analogous
#58268B #8A268B #8B265A
triadic
#8A268B #8B8A26 #268B8A
tetradic
#8A268B #8B5826 #278B26 #265A8B
square
#8A268B #8B5826 #278B26 #265A8B
split-complementary
#8A268B #5A8B26 #268B58
monochromatic
#2B0C2B #5A195B #8A268B #BA33BB #D15AD2

Accessibility & contrast

On white

7.69
#8A268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A268B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A268B#FFFFFF#000000##FFFFFF
##8A268B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#405888
Tritanopia (blue-blind)
#8E3556
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a268b;
/* rgb */ color: rgb(138, 38, 139);
/* oklch */ color: oklch(46.6% 0.178 327.5);
Tailwind
colors: {
  custom: {
    50: '#af6bad',
    500: '#8a268b',
    950: '#000000',
  },
}
SCSS
$custom: #8a268b;
$custom-light: #af6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a268b",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 299.406,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46568,
    "c": 0.17778,
    "h": 327.5
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

primary
#8A268B
secondary
#57B756
accent
#E04749
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A268B

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

Preview Lab → · Contrast checker → · Palette generator →

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