#5A1083#5A1083

#5A1083 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.174 H 308.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5A1083
RGBrgb(90, 16, 131)
HSLhsl(279, 78%, 29%)
HSVhsv(279, 88%, 51%)
CMYKcmyk(31.3%, 87.8%, 0%, 48.6%)
CIE-LABlab(24.27, 50.01, -47.63)
CIE-LCHlch(24.27, 69.06, 316.40°)
OKLaboklab(37.02% 0.1086 -0.1355)
OKLCHoklch(37.02% 0.174 308.7)
XYZxyz(8.4976, 4.1831, 21.8281)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1083 #398310
analogous
#211083 #5A1083 #831073
triadic
#5A1083 #835A10 #10835A
tetradic
#5A1083 #832110 #398310 #107383
square
#5A1083 #832110 #398310 #107383
split-complementary
#5A1083 #738310 #108321
monochromatic
#13031B #35094C #5A1083 #7F17BA #A229E5

Accessibility & contrast

On white

11.43
#5A1083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A1083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1083
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1083#FFFFFF#000000##FFFFFF
##5A10831.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#53314C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1083;
/* rgb */ color: rgb(90, 16, 131);
/* oklch */ color: oklch(37.0% 0.174 308.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ba8',
    500: '#5a1083',
    950: '#000000',
  },
}
SCSS
$custom: #5a1083;
$custom-light: #8e5ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1083",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 278.609,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.17362,
    "h": 308.7
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#5A1083
secondary
#65B936
accent
#F53378
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #5A1083

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

Preview Lab → · Contrast checker → · Palette generator →

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