#8A267D#8A267D

#8A267D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.167 H 333.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8A267D
RGBrgb(138, 38, 125)
HSLhsl(308, 57%, 35%)
HSVhsv(308, 72%, 54%)
CMYKcmyk(0%, 72.5%, 9.4%, 45.9%)
CIE-LABlab(34.54, 51.60, -26.95)
CIE-LCHlch(34.54, 58.21, 332.43°)
OKLaboklab(45.77% 0.1494 -0.0738)
OKLCHoklch(45.77% 0.167 333.7)
XYZxyz(14.8761, 8.2714, 20.2111)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A267D #268A33
analogous
#65268A #8A267D #8A264B
triadic
#8A267D #7D8A26 #267D8A
tetradic
#8A267D #8A6526 #268A33 #264B8A
square
#8A267D #8A6526 #268A33 #264B8A
split-complementary
#8A267D #4B8A26 #268A65
monochromatic
#2A0C26 #5A1952 #8A267D #BA33A8 #D159C2

Accessibility & contrast

On white

7.91
#8A267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A267D
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A267D#FFFFFF#000000##FFFFFF
##8A267D1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#47567B
Tritanopia (blue-blind)
#902F4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a267d;
/* rgb */ color: rgb(138, 38, 125);
/* oklch */ color: oklch(45.8% 0.167 333.7);
Tailwind
colors: {
  custom: {
    50: '#af6aa3',
    500: '#8a267d',
    950: '#000000',
  },
}
SCSS
$custom: #8a267d;
$custom-light: #af6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a267d",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 307.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45766,
    "c": 0.16662,
    "h": 333.7
  },
  "luminance": 0.0827
}

Semantic roles & 50–950 ramp

primary
#8A267D
secondary
#56B662
accent
#E05C48
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A267D

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

Preview Lab → · Contrast checker → · Palette generator →

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