#8C239E#8C239E

#8C239E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.8% C 0.198 H 321.2°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8C239E
RGBrgb(140, 35, 158)
HSLhsl(291, 64%, 38%)
HSVhsv(291, 78%, 62%)
CMYKcmyk(11.4%, 77.8%, 0%, 38%)
CIE-LABlab(36.46, 58.82, -44.17)
CIE-LCHlch(36.46, 73.56, 323.09°)
OKLaboklab(47.82% 0.1542 -0.1238)
OKLCHoklch(47.82% 0.198 321.2)
XYZxyz(17.5871, 9.2471, 33.1996)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C239E #359E23
analogous
#4F239E #8C239E #9E2372
triadic
#8C239E #9E8C23 #239E8C
tetradic
#8C239E #9E4F23 #359E23 #23729E
square
#8C239E #9E4F23 #359E23 #23729E
split-complementary
#8C239E #729E23 #239E4F
monochromatic
#330D3A #60186C #8C239E #B82ED0 #CA60DC

Accessibility & contrast

On white

7.37
#8C239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8C239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C239E
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C239E#FFFFFF#000000##FFFFFF
##8C239E1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#33599B
Tritanopia (blue-blind)
#8D3C60
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8c239e;
/* rgb */ color: rgb(140, 35, 158);
/* oklch */ color: oklch(47.8% 0.198 321.2);
Tailwind
colors: {
  custom: {
    50: '#b16bbb',
    500: '#8c239e',
    950: '#000000',
  },
}
SCSS
$custom: #8c239e;
$custom-light: #b16bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c239e",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 291.22,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47823,
    "c": 0.19769,
    "h": 321.2
  },
  "luminance": 0.09246
}

Semantic roles & 50–950 ramp

primary
#8C239E
secondary
#6BC15C
accent
#E74159
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C239E

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

Preview Lab → · Contrast checker → · Palette generator →

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