#5A2FB0#5A2FB0

#5A2FB0 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.190 H 291.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB0
RGBrgb(90, 47, 176)
HSLhsl(260, 58%, 44%)
HSVhsv(260, 73%, 69%)
CMYKcmyk(48.9%, 73.3%, 0%, 31%)
CIE-LABlab(32.57, 48.70, -61.61)
CIE-LCHlch(32.57, 78.53, 308.33°)
OKLaboklab(44.04% 0.071 -0.1768)
OKLCHoklch(44.04% 0.19 291.9)
XYZxyz(13.0672, 7.3408, 41.7943)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB0 #85B02F
analogous
#2F44B0 #5A2FB0 #9A2FB0
triadic
#5A2FB0 #B05A2F #2FB05A
tetradic
#5A2FB0 #B02F44 #85B02F #2FB09A
square
#5A2FB0 #B02F44 #85B02F #2FB09A
split-complementary
#5A2FB0 #B09A2F #44B02F
monochromatic
#29154F #412280 #5A2FB0 #784DCF #9D7DDC

Accessibility & contrast

On white

8.51
#5A2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5A2FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB0
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB0#FFFFFF#000000##FFFFFF
##5A2FB01.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#3E516D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2fb0;
/* rgb */ color: rgb(90, 47, 176);
/* oklch */ color: oklch(44.0% 0.190 291.9);
Tailwind
colors: {
  custom: {
    50: '#916cc9',
    500: '#5a2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb0;
$custom-light: #916cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb0",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 260,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.19049,
    "h": 291.9
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#5A2FB0
secondary
#ABC576
accent
#E147AE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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