#5A2FB5#5A2FB5

#5A2FB5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.196 H 290.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB5
RGBrgb(90, 47, 181)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 74%, 71%)
CMYKcmyk(50.3%, 74%, 0%, 29%)
CIE-LABlab(33.01, 50.08, -63.86)
CIE-LCHlch(33.01, 81.16, 308.10°)
OKLaboklab(44.49% 0.0698 -0.1834)
OKLCHoklch(44.49% 0.196 290.8)
XYZxyz(13.5711, 7.5423, 44.4479)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB5 #8AB52F
analogous
#2F47B5 #5A2FB5 #9D2FB5
triadic
#5A2FB5 #B55A2F #2FB55A
tetradic
#5A2FB5 #B52F47 #8AB52F #2FB59D
square
#5A2FB5 #B52F47 #8AB52F #2FB59D
split-complementary
#5A2FB5 #B59D2F #47B52F
monochromatic
#2A1654 #422284 #5A2FB5 #7950D1 #9E80DE

Accessibility & contrast

On white

8.37
#5A2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5A2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB5
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB5#FFFFFF#000000##FFFFFF
##5A2FB51.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#3B5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2fb5;
/* rgb */ color: rgb(90, 47, 181);
/* oklch */ color: oklch(44.5% 0.196 290.8);
Tailwind
colors: {
  custom: {
    50: '#926ccc',
    500: '#5a2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb5;
$custom-light: #926ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb5",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 259.254,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44486,
    "c": 0.19622,
    "h": 290.8
  },
  "luminance": 0.07543
}

Semantic roles & 50–950 ramp

primary
#5A2FB5
secondary
#AEC779
accent
#E246B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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