#8B237F#8B237F

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

Color values

HEX#8B237F
RGBrgb(139, 35, 127)
HSLhsl(307, 60%, 34%)
HSVhsv(307, 75%, 55%)
CMYKcmyk(0%, 74.8%, 8.6%, 45.5%)
CIE-LABlab(34.45, 53.24, -28.33)
CIE-LCHlch(34.45, 60.31, 331.98°)
OKLaboklab(45.77% 0.1538 -0.0777)
OKLCHoklch(45.77% 0.172 333.2)
XYZxyz(15.0793, 8.2246, 20.8679)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B237F #238B2F
analogous
#63238B #8B237F #8B234B
triadic
#8B237F #7F8B23 #237F8B
tetradic
#8B237F #8B6323 #238B2F #234B8B
square
#8B237F #8B6323 #238B2F #234B8B
split-complementary
#8B237F #4B8B23 #238B63
monochromatic
#290A26 #5A1752 #8B237F #BC2FAC #D454C5

Accessibility & contrast

On white

7.94
#8B237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B237F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B237F#FFFFFF#000000##FFFFFF
##8B237F1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4782
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#912D4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b237f;
/* rgb */ color: rgb(139, 35, 127);
/* oklch */ color: oklch(45.8% 0.172 333.2);
Tailwind
colors: {
  custom: {
    50: '#b069a4',
    500: '#8b237f',
    950: '#000000',
  },
}
SCSS
$custom: #8b237f;
$custom-light: #b069a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b237f",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 306.923,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45765,
    "c": 0.17228,
    "h": 333.2
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#8B237F
secondary
#52B85E
accent
#E35745
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B237F

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

Preview Lab → · Contrast checker → · Palette generator →

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