#8B238B#8B238B

#8B238B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.182 H 328.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8B238B
RGBrgb(139, 35, 139)
HSLhsl(300, 60%, 34%)
HSVhsv(300, 75%, 55%)
CMYKcmyk(0%, 74.8%, 0%, 45.5%)
CIE-LABlab(35.12, 55.22, -34.72)
CIE-LCHlch(35.12, 65.23, 327.84°)
OKLaboklab(46.46% 0.1541 -0.0962)
OKLCHoklch(46.46% 0.182 328)
XYZxyz(15.9085, 8.5563, 25.2347)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B238B #238B23
analogous
#57238B #8B238B #8B2357
triadic
#8B238B #8B8B23 #238B8B
tetradic
#8B238B #8B5723 #238B23 #23578B
square
#8B238B #8B5723 #238B23 #23578B
split-complementary
#8B238B #578B23 #238B57
monochromatic
#290A29 #5A175A #8B238B #BC2FBC #D454D4

Accessibility & contrast

On white

7.75
#8B238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8B238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B238B
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B238B#FFFFFF#000000##FFFFFF
##8B238B1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8E
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#8F3355
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b238b;
/* rgb */ color: rgb(139, 35, 139);
/* oklch */ color: oklch(46.5% 0.182 328.0);
Tailwind
colors: {
  custom: {
    50: '#b06aad',
    500: '#8b238b',
    950: '#000000',
  },
}
SCSS
$custom: #8b238b;
$custom-light: #b06aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b238b",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 300,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46461,
    "c": 0.18166,
    "h": 328
  },
  "luminance": 0.08555
}

Semantic roles & 50–950 ramp

primary
#8B238B
secondary
#52B852
accent
#E34545
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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