#5A1B95#5A1B95

#5A1B95 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.182 H 301.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5A1B95
RGBrgb(90, 27, 149)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 82%, 58%)
CMYKcmyk(39.6%, 81.9%, 0%, 41.6%)
CIE-LABlab(27.09, 50.54, -54.21)
CIE-LCHlch(27.09, 74.12, 312.99°)
OKLaboklab(39.47% 0.0951 -0.1549)
OKLCHoklch(39.47% 0.182 301.5)
XYZxyz(10.0319, 5.1274, 28.8891)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B95 #56951B
analogous
#1D1B95 #5A1B95 #951B93
triadic
#5A1B95 #955A1B #1B955A
tetradic
#5A1B95 #951D1B #56951B #1B9395
square
#5A1B95 #951D1B #56951B #1B9395
split-complementary
#5A1B95 #93951B #1B951D
monochromatic
#1B082D #3B1261 #5A1B95 #7924C9 #984CDF

Accessibility & contrast

On white

10.37
#5A1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5A1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B95
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B95#FFFFFF#000000##FFFFFF
##5A1B951.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#4D3D59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a1b95;
/* rgb */ color: rgb(90, 27, 149);
/* oklch */ color: oklch(39.5% 0.182 301.5);
Tailwind
colors: {
  custom: {
    50: '#8f60b5',
    500: '#5a1b95',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b95;
$custom-light: #8f60b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b95",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 270.984,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39466,
    "c": 0.18177,
    "h": 301.5
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#5A1B95
secondary
#84C14B
accent
#EC3C91
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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