#8A258C#8A258C

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

Color values

HEX#8A258C
RGBrgb(138, 37, 140)
HSLhsl(299, 58%, 35%)
HSVhsv(299, 74%, 55%)
CMYKcmyk(1.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(35.24, 54.48, -35.14)
CIE-LCHlch(35.24, 64.83, 327.18°)
OKLaboklab(46.54% 0.151 -0.0975)
OKLCHoklch(46.54% 0.18 327.2)
XYZxyz(15.8762, 8.6210, 25.6337)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A258C #278C25
analogous
#57258C #8A258C #8C255B
triadic
#8A258C #8C8A25 #258C8A
tetradic
#8A258C #8C5725 #278C25 #255B8C
square
#8A258C #8C5725 #278C25 #255B8C
split-complementary
#8A258C #5B8C25 #258C57
monochromatic
#2B0B2B #5A185C #8A258C #BA32BC #D158D3

Accessibility & contrast

On white

7.71
#8A258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A258C
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A258C#FFFFFF#000000##FFFFFF
##8A258C1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#3F5789
Tritanopia (blue-blind)
#8E3556
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a258c;
/* rgb */ color: rgb(138, 37, 140);
/* oklch */ color: oklch(46.5% 0.180 327.2);
Tailwind
colors: {
  custom: {
    50: '#b06aae',
    500: '#8a258c',
    950: '#000000',
  },
}
SCSS
$custom: #8a258c;
$custom-light: #b06aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a258c",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 298.835,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46539,
    "c": 0.17975,
    "h": 327.2
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#8A258C
secondary
#57B855
accent
#E14649
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A258C

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

Preview Lab → · Contrast checker → · Palette generator →

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