#8B237A#8B237A

#8B237A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.169 H 335.5°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8B237A
RGBrgb(139, 35, 122)
HSLhsl(310, 60%, 34%)
HSVhsv(310, 75%, 55%)
CMYKcmyk(0%, 74.8%, 12.2%, 45.5%)
CIE-LABlab(34.19, 52.45, -25.62)
CIE-LCHlch(34.19, 58.37, 333.97°)
OKLaboklab(45.49% 0.1533 -0.0699)
OKLCHoklch(45.49% 0.169 335.5)
XYZxyz(14.7615, 8.0975, 19.1941)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B237A #238B34
analogous
#68238B #8B237A #8B2346
triadic
#8B237A #7A8B23 #237A8B
tetradic
#8B237A #8B6823 #238B34 #23468B
square
#8B237A #8B6823 #238B34 #23468B
split-complementary
#8B237A #468B23 #238B68
monochromatic
#290A24 #5A174F #8B237A #BC2FA5 #D454BF

Accessibility & contrast

On white

8.02
#8B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8B237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B237A
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B237A#FFFFFF#000000##FFFFFF
##8B237A1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#485678
Tritanopia (blue-blind)
#922B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b237a;
/* rgb */ color: rgb(139, 35, 122);
/* oklch */ color: oklch(45.5% 0.169 335.5);
Tailwind
colors: {
  custom: {
    50: '#b069a0',
    500: '#8b237a',
    950: '#000000',
  },
}
SCSS
$custom: #8b237a;
$custom-light: #b069a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b237a",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 309.808,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.16854,
    "h": 335.5
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#8B237A
secondary
#52B863
accent
#E35F45
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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