#5A1685#5A1685

#5A1685 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 307.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5A1685
RGBrgb(90, 22, 133)
HSLhsl(277, 72%, 30%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(32.3%, 83.5%, 0%, 47.8%)
CIE-LABlab(25.08, 48.58, -47.56)
CIE-LCHlch(25.08, 67.99, 315.61°)
OKLaboklab(37.63% 0.1038 -0.1353)
OKLCHoklch(37.63% 0.171 307.5)
XYZxyz(8.7361, 4.4411, 22.5827)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1685 #418516
analogous
#231685 #5A1685 #851678
triadic
#5A1685 #855A16 #16855A
tetradic
#5A1685 #852316 #418516 #167885
square
#5A1685 #852316 #418516 #167885
split-complementary
#5A1685 #788516 #168523
monochromatic
#13051C #360D50 #5A1685 #7E1FBA #9D37DE

Accessibility & contrast

On white

11.12
#5A1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1685
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1685#FFFFFF#000000##FFFFFF
##5A16851.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#53344F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1685;
/* rgb */ color: rgb(90, 22, 133);
/* oklch */ color: oklch(37.6% 0.171 307.5);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5a1685',
    950: '#000000',
  },
}
SCSS
$custom: #5a1685;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1685",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 276.757,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37632,
    "c": 0.17052,
    "h": 307.5
  },
  "luminance": 0.04441
}

Semantic roles & 50–950 ramp

primary
#5A1685
secondary
#6DB93E
accent
#EE3980
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1685

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

Preview Lab → · Contrast checker → · Palette generator →

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