#8A258E#8A258E

#8A258E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.181 H 326.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8A258E
RGBrgb(138, 37, 142)
HSLhsl(298, 59%, 35%)
HSVhsv(298, 74%, 56%)
CMYKcmyk(2.8%, 73.9%, 0%, 44.3%)
CIE-LABlab(35.36, 54.83, -36.19)
CIE-LCHlch(35.36, 65.70, 326.58°)
OKLaboklab(46.66% 0.151 -0.1005)
OKLCHoklch(46.66% 0.181 326.3)
XYZxyz(16.0250, 8.6805, 26.4174)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A258E #298E25
analogous
#55258E #8A258E #8E255E
triadic
#8A258E #8E8A25 #258E8A
tetradic
#8A258E #8E5525 #298E25 #255E8E
square
#8A258E #8E5525 #298E25 #255E8E
split-complementary
#8A258E #5E8E25 #258E55
monochromatic
#2C0C2D #5B185D #8A258E #B932BF #CF5AD4

Accessibility & contrast

On white

7.68
#8A258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A258E
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A258E#FFFFFF#000000##FFFFFF
##8A258E1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#3E588B
Tritanopia (blue-blind)
#8E3657
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a258e;
/* rgb */ color: rgb(138, 37, 142);
/* oklch */ color: oklch(46.7% 0.181 326.3);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8a258e',
    950: '#000000',
  },
}
SCSS
$custom: #8a258e;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a258e",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 297.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46661,
    "c": 0.18138,
    "h": 326.3
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#8A258E
secondary
#5AB956
accent
#E2464C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A258E

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

Preview Lab → · Contrast checker → · Palette generator →

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