#5A1FB4#5A1FB4

#5A1FB4 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.7% C 0.210 H 292.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5A1FB4
RGBrgb(90, 31, 180)
HSLhsl(264, 71%, 41%)
HSVhsv(264, 83%, 71%)
CMYKcmyk(50%, 82.8%, 0%, 29.4%)
CIE-LABlab(30.52, 56.73, -67.36)
CIE-LCHlch(30.52, 88.07, 310.10°)
OKLaboklab(42.72% 0.0819 -0.1935)
OKLCHoklch(42.72% 0.21 292.9)
XYZxyz(12.9423, 6.4485, 43.7339)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1FB4 #79B41F
analogous
#1F2FB4 #5A1FB4 #A51FB4
triadic
#5A1FB4 #B45A1F #1FB45A
tetradic
#5A1FB4 #B41F2F #79B41F #1FB4A5
square
#5A1FB4 #B41F2F #79B41F #1FB4A5
split-complementary
#5A1FB4 #B4A51F #2FB41F
monochromatic
#260D4C #401680 #5A1FB4 #7734DC #9A68E5

Accessibility & contrast

On white

9.17
#5A1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5A1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1FB4
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1FB4#FFFFFF#000000##FFFFFF
##5A1FB41.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#3C4C6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a1fb4;
/* rgb */ color: rgb(90, 31, 180);
/* oklch */ color: oklch(42.7% 0.210 292.9);
Tailwind
colors: {
  custom: {
    50: '#9264cc',
    500: '#5a1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #5a1fb4;
$custom-light: #9264cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1fb4",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 263.758,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.21009,
    "h": 292.9
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#5A1FB4
secondary
#A2CB64
accent
#ED3AA7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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