#5A1B92#5A1B92

#5A1B92 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.179 H 302.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5A1B92
RGBrgb(90, 27, 146)
HSLhsl(272, 69%, 34%)
HSVhsv(272, 82%, 57%)
CMYKcmyk(38.4%, 81.5%, 0%, 42.7%)
CIE-LABlab(26.83, 49.82, -52.80)
CIE-LCHlch(26.83, 72.59, 313.34°)
OKLaboklab(39.2% 0.096 -0.1508)
OKLCHoklch(39.2% 0.179 302.5)
XYZxyz(9.7954, 5.0328, 27.6439)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B92 #53921B
analogous
#1F1B92 #5A1B92 #921B8F
triadic
#5A1B92 #925A1B #1B925A
tetradic
#5A1B92 #921F1B #53921B #1B8F92
square
#5A1B92 #921F1B #53921B #1B8F92
split-complementary
#5A1B92 #8F921B #1B921F
monochromatic
#1A082B #3A115E #5A1B92 #7A25C6 #984ADE

Accessibility & contrast

On white

10.47
#5A1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B92
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B92#FFFFFF#000000##FFFFFF
##5A1B921.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#4E3C57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1b92;
/* rgb */ color: rgb(90, 27, 146);
/* oklch */ color: oklch(39.2% 0.179 302.5);
Tailwind
colors: {
  custom: {
    50: '#8f60b3',
    500: '#5a1b92',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b92;
$custom-light: #8f60b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b92",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 271.765,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39199,
    "c": 0.17874,
    "h": 302.5
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#5A1B92
secondary
#81BF49
accent
#EC3C8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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