#8A268A#8A268A

#8A268A is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.177 H 328.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8A268A
RGBrgb(138, 38, 138)
HSLhsl(300, 57%, 35%)
HSVhsv(300, 72%, 54%)
CMYKcmyk(0%, 72.5%, 0%, 45.9%)
CIE-LABlab(35.25, 53.78, -33.90)
CIE-LCHlch(35.25, 63.57, 327.78°)
OKLaboklab(46.51% 0.15 -0.0939)
OKLCHoklch(46.51% 0.177 328)
XYZxyz(15.7616, 8.6256, 24.8746)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A268A #268A26
analogous
#58268A #8A268A #8A2658
triadic
#8A268A #8A8A26 #268A8A
tetradic
#8A268A #8A5826 #268A26 #26588A
square
#8A268A #8A5826 #268A26 #26588A
split-complementary
#8A268A #588A26 #268A58
monochromatic
#2A0C2A #5A195A #8A268A #BA33BA #D159D1

Accessibility & contrast

On white

7.71
#8A268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A268A
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A268A#FFFFFF#000000##FFFFFF
##8A268A1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8D
Deuteranopia (green-blind)
#415787
Tritanopia (blue-blind)
#8E3555
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a268a;
/* rgb */ color: rgb(138, 38, 138);
/* oklch */ color: oklch(46.5% 0.177 328.0);
Tailwind
colors: {
  custom: {
    50: '#af6bac',
    500: '#8a268a',
    950: '#000000',
  },
}
SCSS
$custom: #8a268a;
$custom-light: #af6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a268a",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46508,
    "c": 0.17695,
    "h": 328
  },
  "luminance": 0.08624
}

Semantic roles & 50–950 ramp

primary
#8A268A
secondary
#56B656
accent
#E04848
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A268A

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

Preview Lab → · Contrast checker → · Palette generator →

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