#8A258D#8A258D

#8A258D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.181 H 326.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8A258D
RGBrgb(138, 37, 141)
HSLhsl(298, 58%, 35%)
HSVhsv(298, 74%, 55%)
CMYKcmyk(2.1%, 73.8%, 0%, 44.7%)
CIE-LABlab(35.30, 54.66, -35.66)
CIE-LCHlch(35.30, 65.26, 326.88°)
OKLaboklab(46.6% 0.151 -0.099)
OKLCHoklch(46.6% 0.181 326.8)
XYZxyz(15.9502, 8.6506, 26.0238)
Luminance0.0865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A258D #288D25
analogous
#56258D #8A258D #8D255C
triadic
#8A258D #8D8A25 #258D8A
tetradic
#8A258D #8D5625 #288D25 #255C8D
square
#8A258D #8D5625 #288D25 #255C8D
split-complementary
#8A258D #5C8D25 #258D56
monochromatic
#2B0C2C #5B185D #8A258D #B932BD #D059D3

Accessibility & contrast

On white

7.69
#8A258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A258D
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A258D#FFFFFF#000000##FFFFFF
##8A258D1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B90
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#8E3657
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a258d;
/* rgb */ color: rgb(138, 37, 141);
/* oklch */ color: oklch(46.6% 0.181 326.8);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8a258d',
    950: '#000000',
  },
}
SCSS
$custom: #8a258d;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a258d",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 298.269,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.466,
    "c": 0.18057,
    "h": 326.8
  },
  "luminance": 0.08649
}

Semantic roles & 50–950 ramp

primary
#8A258D
secondary
#59B856
accent
#E2464B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A258D

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

Preview Lab → · Contrast checker → · Palette generator →

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