#8A257D#8A257D

#8A257D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.168 H 333.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8A257D
RGBrgb(138, 37, 125)
HSLhsl(308, 58%, 34%)
HSVhsv(308, 73%, 54%)
CMYKcmyk(0%, 73.2%, 9.4%, 45.9%)
CIE-LABlab(34.41, 51.97, -27.15)
CIE-LCHlch(34.41, 58.63, 332.42°)
OKLaboklab(45.67% 0.1505 -0.0744)
OKLCHoklch(45.67% 0.168 333.7)
XYZxyz(14.8446, 8.2083, 20.2006)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A257D #258A32
analogous
#65258A #8A257D #8A254B
triadic
#8A257D #7D8A25 #257D8A
tetradic
#8A257D #8A6525 #258A32 #254B8A
square
#8A257D #8A6525 #258A32 #254B8A
split-complementary
#8A257D #4B8A25 #258A65
monochromatic
#290B26 #5A1851 #8A257D #BA32A9 #D257C2

Accessibility & contrast

On white

7.95
#8A257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A257D
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A257D#FFFFFF#000000##FFFFFF
##8A257D1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a257d;
/* rgb */ color: rgb(138, 37, 125);
/* oklch */ color: oklch(45.7% 0.168 333.7);
Tailwind
colors: {
  custom: {
    50: '#af6aa3',
    500: '#8a257d',
    950: '#000000',
  },
}
SCSS
$custom: #8a257d;
$custom-light: #af6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a257d",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 307.723,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.16784,
    "h": 333.7
  },
  "luminance": 0.08207
}

Semantic roles & 50–950 ramp

primary
#8A257D
secondary
#54B761
accent
#E15B47
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A257D

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

Preview Lab → · Contrast checker → · Palette generator →

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