#5A1681#5A1681

#5A1681 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.167 H 309.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5A1681
RGBrgb(90, 22, 129)
HSLhsl(278, 71%, 30%)
HSVhsv(278, 83%, 51%)
CMYKcmyk(30.2%, 82.9%, 0%, 49.4%)
CIE-LABlab(24.74, 47.68, -45.59)
CIE-LCHlch(24.74, 65.97, 316.28°)
OKLaboklab(37.29% 0.1048 -0.1295)
OKLCHoklch(37.29% 0.167 309)
XYZxyz(8.4650, 4.3326, 21.1550)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1681 #3D8116
analogous
#251681 #5A1681 #811673
triadic
#5A1681 #815A16 #16815A
tetradic
#5A1681 #812516 #3D8116 #167381
square
#5A1681 #812516 #3D8116 #167381
split-complementary
#5A1681 #738116 #168125
monochromatic
#12041A #360D4D #5A1681 #7E1FB5 #9F35DD

Accessibility & contrast

On white

11.25
#5A1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1681
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1681#FFFFFF#000000##FFFFFF
##5A16811.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#54324C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1681;
/* rgb */ color: rgb(90, 22, 129);
/* oklch */ color: oklch(37.3% 0.167 309.0);
Tailwind
colors: {
  custom: {
    50: '#8d5da6',
    500: '#5a1681',
    950: '#000000',
  },
}
SCSS
$custom: #5a1681;
$custom-light: #8d5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1681",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 278.131,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37292,
    "c": 0.16665,
    "h": 309
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#5A1681
secondary
#69B63D
accent
#EE3A7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1681

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

Preview Lab → · Contrast checker → · Palette generator →

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