#5A1BB3#5A1BB3

#5A1BB3 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.3% C 0.212 H 293.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5A1BB3
RGBrgb(90, 27, 179)
HSLhsl(265, 74%, 40%)
HSVhsv(265, 85%, 70%)
CMYKcmyk(49.7%, 84.9%, 0%, 29.8%)
CIE-LABlab(29.94, 57.88, -67.72)
CIE-LCHlch(29.94, 89.08, 310.52°)
OKLaboklab(42.29% 0.0846 -0.1945)
OKLCHoklch(42.29% 0.212 293.5)
XYZxyz(12.7428, 6.2118, 43.1667)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1BB3 #74B31B
analogous
#1B28B3 #5A1BB3 #A61BB3
triadic
#5A1BB3 #B35A1B #1BB35A
tetradic
#5A1BB3 #B31B28 #74B31B #1BB3A6
square
#5A1BB3 #B31B28 #74B31B #1BB3A6
split-complementary
#5A1BB3 #B3A61B #28B31B
monochromatic
#250B49 #3F137E #5A1BB3 #762CDF #9961E7

Accessibility & contrast

On white

9.36
#5A1BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A1BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1BB3
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1BB3#FFFFFF#000000##FFFFFF
##5A1BB31.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#3D4A6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a1bb3;
/* rgb */ color: rgb(90, 27, 179);
/* oklch */ color: oklch(42.3% 0.212 293.5);
Tailwind
colors: {
  custom: {
    50: '#9362cb',
    500: '#5a1bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a1bb3;
$custom-light: #9362cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1bb3",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 264.868,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42294,
    "c": 0.21208,
    "h": 293.5
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#5A1BB3
secondary
#9ECC5E
accent
#F037A4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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