#5A1883#5A1883

#5A1883 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.167 H 308.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5A1883
RGBrgb(90, 24, 131)
HSLhsl(277, 69%, 30%)
HSVhsv(277, 82%, 51%)
CMYKcmyk(31.3%, 81.7%, 0%, 48.6%)
CIE-LABlab(25.16, 47.41, -46.18)
CIE-LCHlch(25.16, 66.19, 315.76°)
OKLaboklab(37.63% 0.1027 -0.1313)
OKLCHoklch(37.63% 0.167 308)
XYZxyz(8.6390, 4.4658, 21.8752)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1883 #418318
analogous
#241883 #5A1883 #831876
triadic
#5A1883 #835A18 #18835A
tetradic
#5A1883 #832418 #418318 #187683
square
#5A1883 #832418 #418318 #187683
split-complementary
#5A1883 #768318 #188324
monochromatic
#13051C #360F4F #5A1883 #7E21B7 #9D3ADB

Accessibility & contrast

On white

11.09
#5A1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1883
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1883#FFFFFF#000000##FFFFFF
##5A18831.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1883;
/* rgb */ color: rgb(90, 24, 131);
/* oklch */ color: oklch(37.6% 0.167 308.0);
Tailwind
colors: {
  custom: {
    50: '#8d5ea8',
    500: '#5a1883',
    950: '#000000',
  },
}
SCSS
$custom: #5a1883;
$custom-light: #8d5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1883",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 277.009,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37632,
    "c": 0.16667,
    "h": 308
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#5A1883
secondary
#6DB740
accent
#EC3C7F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1883

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

Preview Lab → · Contrast checker → · Palette generator →

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