#8B238D#8B238D

#8B238D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.183 H 327.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8B238D
RGBrgb(139, 35, 141)
HSLhsl(299, 60%, 35%)
HSVhsv(299, 75%, 55%)
CMYKcmyk(1.4%, 75.2%, 0%, 44.7%)
CIE-LABlab(35.23, 55.57, -35.77)
CIE-LCHlch(35.23, 66.08, 327.23°)
OKLaboklab(46.58% 0.1541 -0.0992)
OKLCHoklch(46.58% 0.183 327.2)
XYZxyz(16.0560, 8.6153, 26.0114)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B238D #258D23
analogous
#56238D #8B238D #8D235A
triadic
#8B238D #8D8B23 #238D8B
tetradic
#8B238D #8D5623 #258D23 #235A8D
square
#8B238D #8D5623 #258D23 #235A8D
split-complementary
#8B238D #5A8D23 #238D56
monochromatic
#2A0B2B #5B175C #8B238D #BB2FBE #D355D5

Accessibility & contrast

On white

7.71
#8B238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8B238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B238D
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B238D#FFFFFF#000000##FFFFFF
##8B238D1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084A90
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#8F3456
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b238d;
/* rgb */ color: rgb(139, 35, 141);
/* oklch */ color: oklch(46.6% 0.183 327.2);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8b238d',
    950: '#000000',
  },
}
SCSS
$custom: #8b238d;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b238d",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 298.868,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46583,
    "c": 0.18326,
    "h": 327.2
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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