#8D237F#8D237F

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

Color values

HEX#8D237F
RGBrgb(141, 35, 127)
HSLhsl(308, 60%, 35%)
HSVhsv(308, 75%, 55%)
CMYKcmyk(0%, 75.2%, 9.9%, 44.7%)
CIE-LABlab(34.80, 53.72, -27.75)
CIE-LCHlch(34.80, 60.46, 332.68°)
OKLaboklab(46.09% 0.1559 -0.076)
OKLCHoklch(46.09% 0.173 334)
XYZxyz(15.4164, 8.3984, 20.8837)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D237F #238D31
analogous
#66238D #8D237F #8D234A
triadic
#8D237F #7F8D23 #237F8D
tetradic
#8D237F #8D6623 #238D31 #234A8D
square
#8D237F #8D6623 #238D31 #234A8D
split-complementary
#8D237F #4A8D23 #238D66
monochromatic
#2B0B27 #5C1753 #8D237F #BE2FAB #D555C4

Accessibility & contrast

On white

7.84
#8D237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8D237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D237F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D237F#FFFFFF#000000##FFFFFF
##8D237F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204882
Deuteranopia (green-blind)
#48577C
Tritanopia (blue-blind)
#942D4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d237f;
/* rgb */ color: rgb(141, 35, 127);
/* oklch */ color: oklch(46.1% 0.173 334.0);
Tailwind
colors: {
  custom: {
    50: '#b269a4',
    500: '#8d237f',
    950: '#000000',
  },
}
SCSS
$custom: #8d237f;
$custom-light: #b269a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d237f",
  "rgb": {
    "r": 141,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 307.925,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46086,
    "c": 0.17342,
    "h": 334
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#8D237F
secondary
#53B960
accent
#E35944
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D237F

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

Preview Lab → · Contrast checker → · Palette generator →

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