#5A1EB3#5A1EB3

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

Color values

HEX#5A1EB3
RGBrgb(90, 30, 179)
HSLhsl(264, 71%, 41%)
HSVhsv(264, 83%, 70%)
CMYKcmyk(49.7%, 83.2%, 0%, 29.8%)
CIE-LABlab(30.29, 56.84, -67.13)
CIE-LCHlch(30.29, 87.97, 310.26°)
OKLaboklab(42.54% 0.0828 -0.1928)
OKLCHoklch(42.54% 0.21 293.3)
XYZxyz(12.8151, 6.3564, 43.1908)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1EB3 #77B31E
analogous
#1E2CB3 #5A1EB3 #A41EB3
triadic
#5A1EB3 #B35A1E #1EB35A
tetradic
#5A1EB3 #B31E2C #77B31E #1EB3A4
square
#5A1EB3 #B31E2C #77B31E #1EB3A4
split-complementary
#5A1EB3 #B3A41E #2CB31E
monochromatic
#250C4A #40157F #5A1EB3 #7632DD #9966E5

Accessibility & contrast

On white

9.25
#5A1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A1EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1EB3
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1EB3#FFFFFF#000000##FFFFFF
##5A1EB31.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#3D4B6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a1eb3;
/* rgb */ color: rgb(90, 30, 179);
/* oklch */ color: oklch(42.5% 0.210 293.3);
Tailwind
colors: {
  custom: {
    50: '#9263cb',
    500: '#5a1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a1eb3;
$custom-light: #9263cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1eb3",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 264.161,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42537,
    "c": 0.20985,
    "h": 293.3
  },
  "luminance": 0.06357
}

Semantic roles & 50–950 ramp

primary
#5A1EB3
secondary
#A1CB62
accent
#EE3AA5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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