#8A267A#8A267A

#8A267A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.164 H 335.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8A267A
RGBrgb(138, 38, 122)
HSLhsl(310, 57%, 35%)
HSVhsv(310, 72%, 54%)
CMYKcmyk(0%, 72.5%, 11.6%, 45.9%)
CIE-LABlab(34.39, 51.12, -25.31)
CIE-LCHlch(34.39, 57.05, 333.66°)
OKLaboklab(45.6% 0.1491 -0.0691)
OKLCHoklch(45.6% 0.164 335.1)
XYZxyz(14.6874, 8.1959, 19.2170)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A267A #268A36
analogous
#68268A #8A267A #8A2648
triadic
#8A267A #7A8A26 #267A8A
tetradic
#8A267A #8A6826 #268A36 #26488A
square
#8A267A #8A6826 #268A36 #26488A
split-complementary
#8A267A #488A26 #268A68
monochromatic
#2A0C25 #5A1950 #8A267A #BA33A4 #D159BE

Accessibility & contrast

On white

7.96
#8A267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A267A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A267A#FFFFFF#000000##FFFFFF
##8A267A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#485678
Tritanopia (blue-blind)
#912E4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a267a;
/* rgb */ color: rgb(138, 38, 122);
/* oklch */ color: oklch(45.6% 0.164 335.1);
Tailwind
colors: {
  custom: {
    50: '#af6aa0',
    500: '#8a267a',
    950: '#000000',
  },
}
SCSS
$custom: #8a267a;
$custom-light: #af6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a267a",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 309.6,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45604,
    "c": 0.16435,
    "h": 335.1
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#8A267A
secondary
#56B665
accent
#E06048
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A267A

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

Preview Lab → · Contrast checker → · Palette generator →

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