#5A1775#5A1775

#5A1775 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.154 H 313.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5A1775
RGBrgb(90, 23, 117)
HSLhsl(283, 67%, 27%)
HSVhsv(283, 80%, 46%)
CMYKcmyk(23.1%, 80.3%, 0%, 54.1%)
CIE-LABlab(23.91, 44.65, -39.32)
CIE-LCHlch(23.91, 59.50, 318.63°)
OKLaboklab(36.4% 0.1067 -0.1111)
OKLCHoklch(36.4% 0.154 313.8)
XYZxyz(7.7332, 4.0711, 17.2046)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1775 #327517
analogous
#2B1775 #5A1775 #751761
triadic
#5A1775 #755A17 #17755A
tetradic
#5A1775 #752B17 #327517 #176175
square
#5A1775 #752B17 #327517 #176175
split-complementary
#5A1775 #617517 #17752B
monochromatic
#14051A #330D42 #5A1775 #8121A8 #A730D6

Accessibility & contrast

On white

11.58
#5A1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1775
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1775#FFFFFF#000000##FFFFFF
##5A17751.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#0E3A73
Tritanopia (blue-blind)
#572D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1775;
/* rgb */ color: rgb(90, 23, 117);
/* oklch */ color: oklch(36.4% 0.154 313.8);
Tailwind
colors: {
  custom: {
    50: '#8c5d9d',
    500: '#5a1775',
    950: '#000000',
  },
}
SCSS
$custom: #5a1775;
$custom-light: #8c5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1775",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 282.766,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36403,
    "c": 0.15407,
    "h": 313.8
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#5A1775
secondary
#5DAA3D
accent
#EA3E6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1775

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

Preview Lab → · Contrast checker → · Palette generator →

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