#8C237E#8C237E

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

Color values

HEX#8C237E
RGBrgb(140, 35, 126)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 55%)
CMYKcmyk(0%, 75%, 10%, 45.1%)
CIE-LABlab(34.57, 53.32, -27.50)
CIE-LCHlch(34.57, 59.99, 332.71°)
OKLaboklab(45.87% 0.1547 -0.0753)
OKLCHoklch(45.87% 0.172 334)
XYZxyz(15.1823, 8.2852, 20.5342)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C237E #238C31
analogous
#66238C #8C237E #8C234A
triadic
#8C237E #7E8C23 #237E8C
tetradic
#8C237E #8C6623 #238C31 #234A8C
square
#8C237E #8C6623 #238C31 #234A8C
split-complementary
#8C237E #4A8C23 #238C66
monochromatic
#2A0B26 #5B1752 #8C237E #BD2FAA #D455C3

Accessibility & contrast

On white

7.90
#8C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C237E
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C237E#FFFFFF#000000##FFFFFF
##8C237E1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#47577B
Tritanopia (blue-blind)
#932D4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c237e;
/* rgb */ color: rgb(140, 35, 126);
/* oklch */ color: oklch(45.9% 0.172 334.0);
Tailwind
colors: {
  custom: {
    50: '#b169a3',
    500: '#8c237e',
    950: '#000000',
  },
}
SCSS
$custom: #8c237e;
$custom-light: #b169a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c237e",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 308,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4587,
    "c": 0.1721,
    "h": 334
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#8C237E
secondary
#52B860
accent
#E35A45
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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