#8D237C#8D237C

#8D237C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.171 H 335.4°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8D237C
RGBrgb(141, 35, 124)
HSLhsl(310, 60%, 35%)
HSVhsv(310, 75%, 55%)
CMYKcmyk(0%, 75.2%, 12.1%, 44.7%)
CIE-LABlab(34.64, 53.25, -26.12)
CIE-LCHlch(34.64, 59.31, 333.87°)
OKLaboklab(45.92% 0.1556 -0.0713)
OKLCHoklch(45.92% 0.171 335.4)
XYZxyz(15.2238, 8.3214, 19.8693)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D237C #238D34
analogous
#69238D #8D237C #8D2347
triadic
#8D237C #7C8D23 #237C8D
tetradic
#8D237C #8D6923 #238D34 #23478D
square
#8D237C #8D6923 #238D34 #23478D
split-complementary
#8D237C #478D23 #238D69
monochromatic
#2B0B26 #5C1751 #8D237C #BE2FA7 #D555C0

Accessibility & contrast

On white

7.88
#8D237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8D237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D237C
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D237C#FFFFFF#000000##FFFFFF
##8D237C1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#942B4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d237c;
/* rgb */ color: rgb(141, 35, 124);
/* oklch */ color: oklch(45.9% 0.171 335.4);
Tailwind
colors: {
  custom: {
    50: '#b269a2',
    500: '#8d237c',
    950: '#000000',
  },
}
SCSS
$custom: #8d237c;
$custom-light: #b269a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d237c",
  "rgb": {
    "r": 141,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 309.623,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45923,
    "c": 0.17119,
    "h": 335.4
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#8D237C
secondary
#53B963
accent
#E35E44
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D237C

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

Preview Lab → · Contrast checker → · Palette generator →

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