#5A1FA8#5A1FA8

#5A1FA8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.198 H 295.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5A1FA8
RGBrgb(90, 31, 168)
HSLhsl(266, 69%, 39%)
HSVhsv(266, 82%, 66%)
CMYKcmyk(46.4%, 81.5%, 0%, 34.1%)
CIE-LABlab(29.36, 53.71, -62.07)
CIE-LCHlch(29.36, 82.08, 310.87°)
OKLaboklab(41.57% 0.086 -0.178)
OKLCHoklch(41.57% 0.198 295.8)
XYZxyz(11.7724, 5.9805, 37.5723)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1FA8 #6DA81F
analogous
#1F29A8 #5A1FA8 #9F1FA8
triadic
#5A1FA8 #A85A1F #1FA85A
tetradic
#5A1FA8 #A81F29 #6DA81F #1FA89F
square
#5A1FA8 #A81F29 #6DA81F #1FA89F
split-complementary
#5A1FA8 #A89F1F #29A81F
monochromatic
#230C41 #3E1574 #5A1FA8 #762CD8 #9860E2

Accessibility & contrast

On white

9.56
#5A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1FA8
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1FA8#FFFFFF#000000##FFFFFF
##5A1FA81.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#444765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a1fa8;
/* rgb */ color: rgb(90, 31, 168);
/* oklch */ color: oklch(41.6% 0.198 295.8);
Tailwind
colors: {
  custom: {
    50: '#9163c3',
    500: '#5a1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #5a1fa8;
$custom-light: #9163c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1fa8",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 265.839,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.19768,
    "h": 295.8
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#5A1FA8
secondary
#99C65D
accent
#EC3CA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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