#8C238E#8C238E

#8C238E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.185 H 327.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8C238E
RGBrgb(140, 35, 142)
HSLhsl(299, 60%, 35%)
HSVhsv(299, 75%, 56%)
CMYKcmyk(1.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(35.46, 55.96, -36.00)
CIE-LCHlch(35.46, 66.54, 327.24°)
OKLaboklab(46.8% 0.1552 -0.0999)
OKLCHoklch(46.8% 0.185 327.2)
XYZxyz(16.2985, 8.7317, 26.4129)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C238E #258E23
analogous
#57238E #8C238E #8E235A
triadic
#8C238E #8E8C23 #238E8C
tetradic
#8C238E #8E5723 #258E23 #235A8E
square
#8C238E #8E5723 #258E23 #235A8E
split-complementary
#8C238E #5A8E23 #238E57
monochromatic
#2B0B2C #5C175D #8C238E #BC2FBF #D356D5

Accessibility & contrast

On white

7.65
#8C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8C238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C238E
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C238E#FFFFFF#000000##FFFFFF
##8C238E1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B91
Deuteranopia (green-blind)
#3F588B
Tritanopia (blue-blind)
#903557
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c238e;
/* rgb */ color: rgb(140, 35, 142);
/* oklch */ color: oklch(46.8% 0.185 327.2);
Tailwind
colors: {
  custom: {
    50: '#b16aaf',
    500: '#8c238e',
    950: '#000000',
  },
}
SCSS
$custom: #8c238e;
$custom-light: #b16aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c238e",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 298.879,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46799,
    "c": 0.18456,
    "h": 327.2
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#8C238E
secondary
#55B953
accent
#E44447
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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