#8B238C#8B238C

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

Color values

HEX#8B238C
RGBrgb(139, 35, 140)
HSLhsl(299, 60%, 34%)
HSVhsv(299, 75%, 55%)
CMYKcmyk(0.7%, 75%, 0%, 45.1%)
CIE-LABlab(35.17, 55.40, -35.24)
CIE-LCHlch(35.17, 65.66, 327.54°)
OKLaboklab(46.52% 0.1541 -0.0977)
OKLCHoklch(46.52% 0.182 327.6)
XYZxyz(15.9819, 8.5856, 25.6213)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B238C #248C23
analogous
#57238C #8B238C #8C2358
triadic
#8B238C #8C8B23 #238C8B
tetradic
#8B238C #8C5723 #248C23 #23588C
square
#8B238C #8C5723 #248C23 #23588C
split-complementary
#8B238C #588C23 #238C57
monochromatic
#2A0B2A #5A175B #8B238C #BC2FBD #D355D4

Accessibility & contrast

On white

7.73
#8B238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B238C
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B238C#FFFFFF#000000##FFFFFF
##8B238C1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8F
Deuteranopia (green-blind)
#3F5789
Tritanopia (blue-blind)
#8F3456
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b238c;
/* rgb */ color: rgb(139, 35, 140);
/* oklch */ color: oklch(46.5% 0.182 327.6);
Tailwind
colors: {
  custom: {
    50: '#b06aae',
    500: '#8b238c',
    950: '#000000',
  },
}
SCSS
$custom: #8b238c;
$custom-light: #b06aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8b238c",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 299.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46522,
    "c": 0.18246,
    "h": 327.6
  },
  "luminance": 0.08584
}

Semantic roles & 50–950 ramp

primary
#8B238C
secondary
#53B852
accent
#E34546
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B238C

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

Preview Lab → · Contrast checker → · Palette generator →

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