#8A258F#8A258F

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

Color values

HEX#8A258F
RGBrgb(138, 37, 143)
HSLhsl(297, 59%, 35%)
HSVhsv(297, 74%, 56%)
CMYKcmyk(3.5%, 74.1%, 0%, 43.9%)
CIE-LABlab(35.42, 55.01, -36.71)
CIE-LCHlch(35.42, 66.13, 326.29°)
OKLaboklab(46.72% 0.151 -0.102)
OKLCHoklch(46.72% 0.182 325.9)
XYZxyz(16.1004, 8.7107, 26.8146)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A258F #2A8F25
analogous
#55258F #8A258F #8F255F
triadic
#8A258F #8F8A25 #258F8A
tetradic
#8A258F #8F5525 #2A8F25 #255F8F
square
#8A258F #8F5525 #2A8F25 #255F8F
split-complementary
#8A258F #5F8F25 #258F55
monochromatic
#2C0C2E #5B185E #8A258F #B932C0 #CF5AD4

Accessibility & contrast

On white

7.66
#8A258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A258F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A258F#FFFFFF#000000##FFFFFF
##8A258F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B92
Deuteranopia (green-blind)
#3D588C
Tritanopia (blue-blind)
#8E3758
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a258f;
/* rgb */ color: rgb(138, 37, 143);
/* oklch */ color: oklch(46.7% 0.182 325.9);
Tailwind
colors: {
  custom: {
    50: '#b06ab0',
    500: '#8a258f',
    950: '#000000',
  },
}
SCSS
$custom: #8a258f;
$custom-light: #b06ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a258f",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 297.17,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46723,
    "c": 0.18221,
    "h": 325.9
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#8A258F
secondary
#5BB957
accent
#E2464D
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A258F

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

Preview Lab → · Contrast checker → · Palette generator →

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