#5A2FA0#5A2FA0

#5A2FA0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.172 H 295.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5A2FA0
RGBrgb(90, 47, 160)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 63%)
CMYKcmyk(43.7%, 70.6%, 0%, 37.3%)
CIE-LABlab(31.22, 44.32, -54.20)
CIE-LCHlch(31.22, 70.01, 309.27°)
OKLaboklab(42.66% 0.0743 -0.155)
OKLCHoklch(42.66% 0.172 295.6)
XYZxyz(11.5764, 6.7445, 33.9428)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FA0 #75A02F
analogous
#2F3CA0 #5A2FA0 #922FA0
triadic
#5A2FA0 #A05A2F #2FA05A
tetradic
#5A2FA0 #A02F3C #75A02F #2FA092
square
#5A2FA0 #A02F3C #75A02F #2FA092
split-complementary
#5A2FA0 #A0922F #3CA02F
monochromatic
#251341 #3F2171 #5A2FA0 #7644C8 #9973D6

Accessibility & contrast

On white

8.94
#5A2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FA0
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FA0#FFFFFF#000000##FFFFFF
##5A2FA01.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#474B64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2fa0;
/* rgb */ color: rgb(90, 47, 160);
/* oklch */ color: oklch(42.7% 0.172 295.6);
Tailwind
colors: {
  custom: {
    50: '#8f6bbd',
    500: '#5a2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fa0;
$custom-light: #8f6bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fa0",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 262.832,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42661,
    "c": 0.17189,
    "h": 295.6
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#5A2FA0
secondary
#9FBE6D
accent
#DE4AA6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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