#8C237D#8C237D

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

Color values

HEX#8C237D
RGBrgb(140, 35, 125)
HSLhsl(309, 60%, 34%)
HSVhsv(309, 75%, 55%)
CMYKcmyk(0%, 75%, 10.7%, 45.1%)
CIE-LABlab(34.52, 53.16, -26.96)
CIE-LCHlch(34.52, 59.61, 333.11°)
OKLaboklab(45.82% 0.1547 -0.0738)
OKLCHoklch(45.82% 0.171 334.5)
XYZxyz(15.1181, 8.2595, 20.1961)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C237D #238C32
analogous
#67238C #8C237D #8C2349
triadic
#8C237D #7D8C23 #237D8C
tetradic
#8C237D #8C6723 #238C32 #23498C
square
#8C237D #8C6723 #238C32 #23498C
split-complementary
#8C237D #498C23 #238C67
monochromatic
#2A0B26 #5B1751 #8C237D #BD2FA9 #D455C2

Accessibility & contrast

On white

7.92
#8C237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8C237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C237D
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C237D#FFFFFF#000000##FFFFFF
##8C237D1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#932C4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c237d;
/* rgb */ color: rgb(140, 35, 125);
/* oklch */ color: oklch(45.8% 0.171 334.5);
Tailwind
colors: {
  custom: {
    50: '#b169a3',
    500: '#8c237d',
    950: '#000000',
  },
}
SCSS
$custom: #8c237d;
$custom-light: #b169a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c237d",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 308.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45815,
    "c": 0.17135,
    "h": 334.5
  },
  "luminance": 0.08258
}

Semantic roles & 50–950 ramp

primary
#8C237D
secondary
#52B861
accent
#E35B45
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8C237D

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

Preview Lab → · Contrast checker → · Palette generator →

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