#8B237D#8B237D

#8B237D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.171 H 334.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8B237D
RGBrgb(139, 35, 125)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 55%)
CMYKcmyk(0%, 74.8%, 10.1%, 45.5%)
CIE-LABlab(34.34, 52.92, -27.25)
CIE-LCHlch(34.34, 59.52, 332.75°)
OKLaboklab(45.65% 0.1536 -0.0746)
OKLCHoklch(45.65% 0.171 334.1)
XYZxyz(14.9503, 8.1730, 20.1882)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B237D #238B31
analogous
#65238B #8B237D #8B2349
triadic
#8B237D #7D8B23 #237D8B
tetradic
#8B237D #8B6523 #238B31 #23498B
square
#8B237D #8B6523 #238B31 #23498B
split-complementary
#8B237D #498B23 #238B65
monochromatic
#290A25 #5A1751 #8B237D #BC2FA9 #D454C3

Accessibility & contrast

On white

7.97
#8B237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8B237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B237D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B237D#FFFFFF#000000##FFFFFF
##8B237D1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#47567B
Tritanopia (blue-blind)
#922C4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b237d;
/* rgb */ color: rgb(139, 35, 125);
/* oklch */ color: oklch(45.7% 0.171 334.1);
Tailwind
colors: {
  custom: {
    50: '#b069a3',
    500: '#8b237d',
    950: '#000000',
  },
}
SCSS
$custom: #8b237d;
$custom-light: #b069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b237d",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 308.077,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45654,
    "c": 0.17077,
    "h": 334.1
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#8B237D
secondary
#52B860
accent
#E35A45
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B237D

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

Preview Lab → · Contrast checker → · Palette generator →

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