#8D257E#8D257E

#8D257E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.170 H 334.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#8D257E
RGBrgb(141, 37, 126)
HSLhsl(309, 58%, 35%)
HSVhsv(309, 74%, 55%)
CMYKcmyk(0%, 73.8%, 10.6%, 44.7%)
CIE-LABlab(34.99, 52.87, -26.83)
CIE-LCHlch(34.99, 59.29, 333.09°)
OKLaboklab(46.21% 0.1538 -0.0734)
OKLCHoklch(46.21% 0.17 334.5)
XYZxyz(15.4121, 8.4935, 20.5623)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D257E #258D34
analogous
#68258D #8D257E #8D254A
triadic
#8D257E #7E8D25 #257E8D
tetradic
#8D257E #8D6825 #258D34 #254A8D
square
#8D257E #8D6825 #258D34 #254A8D
split-complementary
#8D257E #4A8D25 #258D68
monochromatic
#2C0C27 #5D1853 #8D257E #BD32A9 #D359C2

Accessibility & contrast

On white

7.78
#8D257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8D257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D257E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D257E#FFFFFF#000000##FFFFFF
##8D257E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244980
Deuteranopia (green-blind)
#49587B
Tritanopia (blue-blind)
#942E4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d257e;
/* rgb */ color: rgb(141, 37, 126);
/* oklch */ color: oklch(46.2% 0.170 334.5);
Tailwind
colors: {
  custom: {
    50: '#b26aa3',
    500: '#8d257e',
    950: '#000000',
  },
}
SCSS
$custom: #8d257e;
$custom-light: #b26aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d257e",
  "rgb": {
    "r": 141,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 308.654,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46207,
    "c": 0.17036,
    "h": 334.5
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#8D257E
secondary
#56B864
accent
#E25D46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D257E

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

Preview Lab → · Contrast checker → · Palette generator →

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