#8A257A#8A257A

#8A257A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.166 H 335.1°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8A257A
RGBrgb(138, 37, 122)
HSLhsl(310, 58%, 34%)
HSVhsv(310, 73%, 54%)
CMYKcmyk(0%, 73.2%, 11.6%, 45.9%)
CIE-LABlab(34.26, 51.49, -25.51)
CIE-LCHlch(34.26, 57.46, 333.64°)
OKLaboklab(45.51% 0.1502 -0.0697)
OKLCHoklch(45.51% 0.166 335.1)
XYZxyz(14.6558, 8.1328, 19.2065)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A257A #258A35
analogous
#68258A #8A257A #8A2548
triadic
#8A257A #7A8A25 #257A8A
tetradic
#8A257A #8A6825 #258A35 #25488A
square
#8A257A #8A6825 #258A35 #25488A
split-complementary
#8A257A #488A25 #258A68
monochromatic
#290B25 #5A184F #8A257A #BA32A5 #D257BF

Accessibility & contrast

On white

8.00
#8A257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A257A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A257A#FFFFFF#000000##FFFFFF
##8A257A1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a257a;
/* rgb */ color: rgb(138, 37, 122);
/* oklch */ color: oklch(45.5% 0.166 335.1);
Tailwind
colors: {
  custom: {
    50: '#af6aa0',
    500: '#8a257a',
    950: '#000000',
  },
}
SCSS
$custom: #8a257a;
$custom-light: #af6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a257a",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 309.505,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.16557,
    "h": 335.1
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#8A257A
secondary
#54B764
accent
#E15F47
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A257A

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

Preview Lab → · Contrast checker → · Palette generator →

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