#8A258B#8A258B

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

Color values

HEX#8A258B
RGBrgb(138, 37, 139)
HSLhsl(299, 58%, 35%)
HSVhsv(299, 73%, 55%)
CMYKcmyk(0.7%, 73.4%, 0%, 45.5%)
CIE-LABlab(35.19, 54.31, -34.62)
CIE-LCHlch(35.19, 64.41, 327.49°)
OKLaboklab(46.48% 0.151 -0.096)
OKLCHoklch(46.48% 0.179 327.6)
XYZxyz(15.8028, 8.5916, 25.2471)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A258B #268B25
analogous
#57258B #8A258B #8B2559
triadic
#8A258B #8B8A25 #258B8A
tetradic
#8A258B #8B5725 #268B25 #25598B
square
#8A258B #8B5725 #268B25 #25598B
split-complementary
#8A258B #598B25 #258B57
monochromatic
#2A0B2A #5A185B #8A258B #BA32BB #D158D3

Accessibility & contrast

On white

7.73
#8A258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A258B
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A258B#FFFFFF#000000##FFFFFF
##8A258B1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#8E3556
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a258b;
/* rgb */ color: rgb(138, 37, 139);
/* oklch */ color: oklch(46.5% 0.179 327.6);
Tailwind
colors: {
  custom: {
    50: '#af6aad',
    500: '#8a258b',
    950: '#000000',
  },
}
SCSS
$custom: #8a258b;
$custom-light: #af6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a258b",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 299.412,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46478,
    "c": 0.17893,
    "h": 327.6
  },
  "luminance": 0.0859
}

Semantic roles & 50–950 ramp

primary
#8A258B
secondary
#56B755
accent
#E14748
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A258B

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

Preview Lab → · Contrast checker → · Palette generator →

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