#8D237E#8D237E

#8D237E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.173 H 334.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8D237E
RGBrgb(141, 35, 126)
HSLhsl(308, 60%, 35%)
HSVhsv(308, 75%, 55%)
CMYKcmyk(0%, 75.2%, 10.6%, 44.7%)
CIE-LABlab(34.75, 53.56, -27.21)
CIE-LCHlch(34.75, 60.08, 333.07°)
OKLaboklab(46.03% 0.1558 -0.0745)
OKLCHoklch(46.03% 0.173 334.5)
XYZxyz(15.3516, 8.3725, 20.5421)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D237E #238D32
analogous
#67238D #8D237E #8D2349
triadic
#8D237E #7E8D23 #237E8D
tetradic
#8D237E #8D6723 #238D32 #23498D
square
#8D237E #8D6723 #238D32 #23498D
split-complementary
#8D237E #498D23 #238D67
monochromatic
#2B0B26 #5C1752 #8D237E #BE2FAA #D555C3

Accessibility & contrast

On white

7.85
#8D237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8D237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D237E
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D237E#FFFFFF#000000##FFFFFF
##8D237E1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#942C4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d237e;
/* rgb */ color: rgb(141, 35, 126);
/* oklch */ color: oklch(46.0% 0.173 334.5);
Tailwind
colors: {
  custom: {
    50: '#b269a3',
    500: '#8d237e',
    950: '#000000',
  },
}
SCSS
$custom: #8d237e;
$custom-light: #b269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d237e",
  "rgb": {
    "r": 141,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 308.491,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46031,
    "c": 0.17267,
    "h": 334.5
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#8D237E
secondary
#53B961
accent
#E35B44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D237E

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

Preview Lab → · Contrast checker → · Palette generator →

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