#5A1FA0#5A1FA0

#5A1FA0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.189 H 297.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5A1FA0
RGBrgb(90, 31, 160)
HSLhsl(267, 68%, 37%)
HSVhsv(267, 81%, 63%)
CMYKcmyk(43.7%, 80.6%, 0%, 37.3%)
CIE-LABlab(28.62, 51.70, -58.44)
CIE-LCHlch(28.62, 78.03, 311.50°)
OKLaboklab(40.83% 0.0886 -0.1674)
OKLCHoklch(40.83% 0.189 297.9)
XYZxyz(11.0499, 5.6915, 33.7673)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1FA0 #65A01F
analogous
#1F24A0 #5A1FA0 #9B1FA0
triadic
#5A1FA0 #A05A1F #1FA05A
tetradic
#5A1FA0 #A01F24 #65A01F #1FA09B
square
#5A1FA0 #A01F24 #65A01F #1FA09B
split-complementary
#5A1FA0 #A09B1F #24A01F
monochromatic
#200B39 #3D156D #5A1FA0 #7729D3 #975ADF

Accessibility & contrast

On white

9.82
#5A1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1FA0
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1FA0#FFFFFF#000000##FFFFFF
##5A1FA01.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#484360
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a1fa0;
/* rgb */ color: rgb(90, 31, 160);
/* oklch */ color: oklch(40.8% 0.189 297.9);
Tailwind
colors: {
  custom: {
    50: '#9063bd',
    500: '#5a1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5a1fa0;
$custom-light: #9063bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1fa0",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 267.442,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40832,
    "c": 0.18937,
    "h": 297.9
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#5A1FA0
secondary
#92C358
accent
#EA3D9B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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