#5A1783#5A1783

#5A1783 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.168 H 308.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1783
RGBrgb(90, 23, 131)
HSLhsl(277, 70%, 30%)
HSVhsv(277, 82%, 51%)
CMYKcmyk(31.3%, 82.4%, 0%, 48.6%)
CIE-LABlab(25.03, 47.78, -46.38)
CIE-LCHlch(25.03, 66.59, 315.85°)
OKLaboklab(37.55% 0.1035 -0.1319)
OKLCHoklch(37.55% 0.168 308.1)
XYZxyz(8.6187, 4.4253, 21.8685)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1783 #408317
analogous
#241783 #5A1783 #831776
triadic
#5A1783 #835A17 #17835A
tetradic
#5A1783 #832417 #408317 #177683
square
#5A1783 #832417 #408317 #177683
split-complementary
#5A1783 #768317 #178324
monochromatic
#12051B #360E4F #5A1783 #7E20B7 #9E38DC

Accessibility & contrast

On white

11.14
#5A1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1783
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1783#FFFFFF#000000##FFFFFF
##5A17831.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#53334E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1783;
/* rgb */ color: rgb(90, 23, 131);
/* oklch */ color: oklch(37.5% 0.168 308.1);
Tailwind
colors: {
  custom: {
    50: '#8d5da8',
    500: '#5a1783',
    950: '#000000',
  },
}
SCSS
$custom: #5a1783;
$custom-light: #8d5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1783",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 277.222,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37545,
    "c": 0.16764,
    "h": 308.1
  },
  "luminance": 0.04425
}

Semantic roles & 50–950 ramp

primary
#5A1783
secondary
#6CB73F
accent
#ED3B7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1783

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

Preview Lab → · Contrast checker → · Palette generator →

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