#5A2FAD#5A2FAD

#5A2FAD is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.187 H 292.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5A2FAD
RGBrgb(90, 47, 173)
HSLhsl(260, 57%, 43%)
HSVhsv(260, 73%, 68%)
CMYKcmyk(48%, 72.8%, 0%, 32.2%)
CIE-LABlab(32.31, 47.88, -60.24)
CIE-LCHlch(32.31, 76.95, 308.48°)
OKLaboklab(43.78% 0.0717 -0.1727)
OKLCHoklch(43.78% 0.187 292.5)
XYZxyz(12.7737, 7.2234, 40.2483)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FAD #82AD2F
analogous
#2F43AD #5A2FAD #992FAD
triadic
#5A2FAD #AD5A2F #2FAD5A
tetradic
#5A2FAD #AD2F43 #82AD2F #2FAD99
square
#5A2FAD #AD2F43 #82AD2F #2FAD99
split-complementary
#5A2FAD #AD992F #43AD2F
monochromatic
#28154D #41227D #5A2FAD #784BCE #9C7BDB

Accessibility & contrast

On white

8.59
#5A2FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A2FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FAD
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FAD#FFFFFF#000000##FFFFFF
##5A2FAD1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#40506B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2fad;
/* rgb */ color: rgb(90, 47, 173);
/* oklch */ color: oklch(43.8% 0.187 292.5);
Tailwind
colors: {
  custom: {
    50: '#916cc6',
    500: '#5a2fad',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fad;
$custom-light: #916cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fad",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 260.476,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43776,
    "c": 0.18703,
    "h": 292.5
  },
  "luminance": 0.07224
}

Semantic roles & 50–950 ramp

primary
#5A2FAD
secondary
#A9C474
accent
#E147AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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