#71158F#71158F

#71158F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.7% C 0.187 H 315.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#71158F
RGBrgb(113, 21, 143)
HSLhsl(285, 74%, 32%)
HSVhsv(285, 85%, 56%)
CMYKcmyk(21%, 85.3%, 0%, 43.9%)
CIE-LABlab(29.49, 55.00, -46.46)
CIE-LCHlch(29.49, 72.00, 319.81°)
OKLaboklab(41.71% 0.1338 -0.1313)
OKLCHoklch(41.71% 0.187 315.5)
XYZxyz(12.0353, 6.0307, 26.5113)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#71158F #338F15
analogous
#34158F #71158F #8F1570
triadic
#71158F #8F7115 #158F71
tetradic
#71158F #8F3415 #338F15 #15708F
square
#71158F #8F3415 #338F15 #15708F
split-complementary
#71158F #708F15 #158F34
monochromatic
#1D0524 #470D5A #71158F #9B1DC4 #B93CE2

Accessibility & contrast

On white

9.52
#71158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#71158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #71158F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##71158F#FFFFFF#000000##FFFFFF
##71158F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#0E488D
Tritanopia (blue-blind)
#6F3454
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #71158f;
/* rgb */ color: rgb(113, 21, 143);
/* oklch */ color: oklch(41.7% 0.187 315.5);
Tailwind
colors: {
  custom: {
    50: '#9e61b1',
    500: '#71158f',
    950: '#000000',
  },
}
SCSS
$custom: #71158f;
$custom-light: #9e61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#71158f",
  "rgb": {
    "r": 113,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 285.246,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41708,
    "c": 0.18743,
    "h": 315.5
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#71158F
secondary
#5EC23E
accent
#F13765
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #71158F

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

Preview Lab → · Contrast checker → · Palette generator →

#71158F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva