#8B237C#8B237C

#8B237C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.170 H 334.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8B237C
RGBrgb(139, 35, 124)
HSLhsl(309, 60%, 34%)
HSVhsv(309, 75%, 55%)
CMYKcmyk(0%, 74.8%, 10.8%, 45.5%)
CIE-LABlab(34.29, 52.76, -26.71)
CIE-LCHlch(34.29, 59.13, 333.15°)
OKLaboklab(45.6% 0.1535 -0.073)
OKLCHoklch(45.6% 0.17 334.6)
XYZxyz(14.8867, 8.1476, 19.8535)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B237C #238B32
analogous
#66238B #8B237C #8B2348
triadic
#8B237C #7C8B23 #237C8B
tetradic
#8B237C #8B6623 #238B32 #23488B
square
#8B237C #8B6623 #238B32 #23488B
split-complementary
#8B237C #488B23 #238B66
monochromatic
#290A25 #5A1750 #8B237C #BC2FA8 #D454C2

Accessibility & contrast

On white

7.99
#8B237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B237C
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B237C#FFFFFF#000000##FFFFFF
##8B237C1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#922C4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b237c;
/* rgb */ color: rgb(139, 35, 124);
/* oklch */ color: oklch(45.6% 0.170 334.6);
Tailwind
colors: {
  custom: {
    50: '#b069a2',
    500: '#8b237c',
    950: '#000000',
  },
}
SCSS
$custom: #8b237c;
$custom-light: #b069a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b237c",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 308.654,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.456,
    "c": 0.17002,
    "h": 334.6
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#8B237C
secondary
#52B861
accent
#E35C45
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B237C

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

Preview Lab → · Contrast checker → · Palette generator →

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