#5A2FB6#5A2FB6

#5A2FB6 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.197 H 290.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB6
RGBrgb(90, 47, 182)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 74%, 71%)
CMYKcmyk(50.5%, 74.2%, 0%, 28.6%)
CIE-LABlab(33.10, 50.35, -64.31)
CIE-LCHlch(33.10, 81.68, 308.06°)
OKLaboklab(44.58% 0.0696 -0.1847)
OKLCHoklch(44.58% 0.197 290.6)
XYZxyz(13.6740, 7.5835, 44.9902)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB6 #8BB62F
analogous
#2F48B6 #5A2FB6 #9D2FB6
triadic
#5A2FB6 #B65A2F #2FB65A
tetradic
#5A2FB6 #B62F48 #8BB62F #2FB69D
square
#5A2FB6 #B62F48 #8BB62F #2FB69D
split-complementary
#5A2FB6 #B69D2F #48B62F
monochromatic
#2A1655 #422285 #5A2FB6 #7A50D2 #9F81DE

Accessibility & contrast

On white

8.34
#5A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5A2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB6
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB6#FFFFFF#000000##FFFFFF
##5A2FB61.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#3A5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2fb6;
/* rgb */ color: rgb(90, 47, 182);
/* oklch */ color: oklch(44.6% 0.197 290.6);
Tailwind
colors: {
  custom: {
    50: '#926ccd',
    500: '#5a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb6;
$custom-light: #926ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb6",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 259.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44576,
    "c": 0.19735,
    "h": 290.6
  },
  "luminance": 0.07584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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