#8B238A#8B238A

#8B238A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.181 H 328.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8B238A
RGBrgb(139, 35, 138)
HSLhsl(301, 60%, 34%)
HSVhsv(301, 75%, 55%)
CMYKcmyk(0%, 74.8%, 0.7%, 45.5%)
CIE-LABlab(35.06, 55.05, -34.20)
CIE-LCHlch(35.06, 64.81, 328.15°)
OKLaboklab(46.4% 0.1541 -0.0947)
OKLCHoklch(46.4% 0.181 328.4)
XYZxyz(15.8358, 8.5272, 24.8517)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B238A #238B24
analogous
#58238B #8B238A #8B2356
triadic
#8B238A #8A8B23 #238A8B
tetradic
#8B238A #8B5823 #238B24 #23568B
square
#8B238A #8B5823 #238B24 #23568B
split-complementary
#8B238A #568B23 #238B58
monochromatic
#290A29 #5A1759 #8B238A #BC2FBB #D454D3

Accessibility & contrast

On white

7.76
#8B238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B238A
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B238A#FFFFFF#000000##FFFFFF
##8B238A1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#903355
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b238a;
/* rgb */ color: rgb(139, 35, 138);
/* oklch */ color: oklch(46.4% 0.181 328.4);
Tailwind
colors: {
  custom: {
    50: '#b06aac',
    500: '#8b238a',
    950: '#000000',
  },
}
SCSS
$custom: #8b238a;
$custom-light: #b06aac;
$custom-dark: #000000;
JSON
{
  "hex": "#8b238a",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 300.577,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46401,
    "c": 0.18085,
    "h": 328.4
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#8B238A
secondary
#52B853
accent
#E34645
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B238A

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

Preview Lab → · Contrast checker → · Palette generator →

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