#5A1F92#5A1F92

#5A1F92 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.175 H 302.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5A1F92
RGBrgb(90, 31, 146)
HSLhsl(271, 65%, 35%)
HSVhsv(271, 79%, 57%)
CMYKcmyk(38.4%, 78.8%, 0%, 42.7%)
CIE-LABlab(27.38, 48.23, -51.90)
CIE-LCHlch(27.38, 70.85, 312.90°)
OKLaboklab(39.58% 0.0927 -0.1481)
OKLCHoklch(39.58% 0.175 302)
XYZxyz(9.8935, 5.2289, 27.6766)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1F92 #57921F
analogous
#211F92 #5A1F92 #921F90
triadic
#5A1F92 #925A1F #1F925A
tetradic
#5A1F92 #92211F #57921F #1F9092
square
#5A1F92 #92211F #57921F #1F9092
split-complementary
#5A1F92 #90921F #1F9221
monochromatic
#1C0A2D #3B1460 #5A1F92 #792AC4 #9751DA

Accessibility & contrast

On white

10.26
#5A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1F92
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1F92#FFFFFF#000000##FFFFFF
##5A1F921.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#4E3D58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a1f92;
/* rgb */ color: rgb(90, 31, 146);
/* oklch */ color: oklch(39.6% 0.175 302.0);
Tailwind
colors: {
  custom: {
    50: '#8e62b3',
    500: '#5a1f92',
    950: '#000000',
  },
}
SCSS
$custom: #5a1f92;
$custom-light: #8e62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1f92",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 270.783,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39582,
    "c": 0.17476,
    "h": 302
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#5A1F92
secondary
#85BD50
accent
#E84092
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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