#5A115B#5A115B

#5A115B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.137 H 327.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#5A115B
RGBrgb(90, 17, 91)
HSLhsl(299, 69%, 21%)
HSVhsv(299, 81%, 36%)
CMYKcmyk(1.1%, 81.3%, 0%, 64.3%)
CIE-LABlab(21.32, 41.54, -26.50)
CIE-LCHlch(21.32, 49.27, 327.46°)
OKLaboklab(33.99% 0.1154 -0.0736)
OKLCHoklch(33.99% 0.137 327.5)
XYZxyz(6.3051, 3.3303, 10.2062)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A115B #125B11
analogous
#35115B #5A115B #5B1137
triadic
#5A115B #5B5A11 #115B5A
tetradic
#5A115B #5B3511 #125B11 #11375B
square
#5A115B #5B3511 #125B11 #11375B
split-complementary
#5A115B #375B11 #115B35
monochromatic
#1A051A #270727 #5A115B #8D1B8F #C024C2

Accessibility & contrast

On white

12.61
#5A115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A115B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A115B#FFFFFF#000000##FFFFFF
##5A115B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#253659
Tritanopia (blue-blind)
#5D1E35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a115b;
/* rgb */ color: rgb(90, 17, 91);
/* oklch */ color: oklch(34.0% 0.137 327.5);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5a115b',
    950: '#000000',
  },
}
SCSS
$custom: #5a115b;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a115b",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 299.189,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33985,
    "c": 0.13684,
    "h": 327.5
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#5A115B
secondary
#359434
accent
#EB3C3F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A115B

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

Preview Lab → · Contrast checker → · Palette generator →

#5A115B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva