#8B237E#8B237E

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

Color values

HEX#8B237E
RGBrgb(139, 35, 126)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 55%)
CMYKcmyk(0%, 74.8%, 9.4%, 45.5%)
CIE-LABlab(34.39, 53.08, -27.79)
CIE-LCHlch(34.39, 59.91, 332.36°)
OKLaboklab(45.71% 0.1537 -0.0762)
OKLCHoklch(45.71% 0.172 333.6)
XYZxyz(15.0145, 8.1987, 20.5263)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B237E #238B30
analogous
#64238B #8B237E #8B234A
triadic
#8B237E #7E8B23 #237E8B
tetradic
#8B237E #8B6423 #238B30 #234A8B
square
#8B237E #8B6423 #238B30 #234A8B
split-complementary
#8B237E #4A8B23 #238B64
monochromatic
#290A25 #5A1752 #8B237E #BC2FAA #D454C4

Accessibility & contrast

On white

7.96
#8B237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8B237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B237E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B237E#FFFFFF#000000##FFFFFF
##8B237E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#922D4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b237e;
/* rgb */ color: rgb(139, 35, 126);
/* oklch */ color: oklch(45.7% 0.172 333.6);
Tailwind
colors: {
  custom: {
    50: '#b069a3',
    500: '#8b237e',
    950: '#000000',
  },
}
SCSS
$custom: #8b237e;
$custom-light: #b069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b237e",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 307.5,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45709,
    "c": 0.17152,
    "h": 333.6
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#8B237E
secondary
#52B85F
accent
#E35945
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B237E

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

Preview Lab → · Contrast checker → · Palette generator →

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