#5A115F#5A115F

#5A115F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.140 H 325.2°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#5A115F
RGBrgb(90, 17, 95)
HSLhsl(296, 70%, 22%)
HSVhsv(296, 82%, 37%)
CMYKcmyk(5.3%, 82.1%, 0%, 62.7%)
CIE-LABlab(21.58, 42.28, -28.74)
CIE-LCHlch(21.58, 51.13, 325.80°)
OKLaboklab(34.26% 0.1152 -0.0801)
OKLCHoklch(34.26% 0.14 325.2)
XYZxyz(6.4823, 3.4012, 11.1393)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A115F #165F11
analogous
#33115F #5A115F #5F113D
triadic
#5A115F #5F5A11 #115F5A
tetradic
#5A115F #5F3311 #165F11 #113D5F
square
#5A115F #5F3311 #165F11 #113D5F
split-complementary
#5A115F #3D5F11 #115F33
monochromatic
#19051A #29082B #5A115F #8B1A93 #BC24C7

Accessibility & contrast

On white

12.50
#5A115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A115F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A115F#FFFFFF#000000##FFFFFF
##5A115F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#22375D
Tritanopia (blue-blind)
#5C2038
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a115f;
/* rgb */ color: rgb(90, 17, 95);
/* oklch */ color: oklch(34.3% 0.140 325.2);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5a115f',
    950: '#000000',
  },
}
SCSS
$custom: #5a115f;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a115f",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 296.154,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34257,
    "c": 0.14029,
    "h": 325.2
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#5A115F
secondary
#3B9834
accent
#EC3B47
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A115F

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

Preview Lab → · Contrast checker → · Palette generator →

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