#5A2FB4#5A2FB4

#5A2FB4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.195 H 291.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB4
RGBrgb(90, 47, 180)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 74%, 71%)
CMYKcmyk(50%, 73.9%, 0%, 29.4%)
CIE-LABlab(32.92, 49.80, -63.41)
CIE-LCHlch(32.92, 80.63, 308.15°)
OKLaboklab(44.4% 0.0701 -0.182)
OKLCHoklch(44.4% 0.195 291.1)
XYZxyz(13.4688, 7.5014, 43.9094)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB4 #89B42F
analogous
#2F47B4 #5A2FB4 #9C2FB4
triadic
#5A2FB4 #B45A2F #2FB45A
tetradic
#5A2FB4 #B42F47 #89B42F #2FB49C
square
#5A2FB4 #B42F47 #89B42F #2FB49C
split-complementary
#5A2FB4 #B49C2F #47B42F
monochromatic
#291653 #422283 #5A2FB4 #794FD1 #9E80DE

Accessibility & contrast

On white

8.40
#5A2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5A2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB4
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB4#FFFFFF#000000##FFFFFF
##5A2FB41.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#3C536F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2fb4;
/* rgb */ color: rgb(90, 47, 180);
/* oklch */ color: oklch(44.4% 0.195 291.1);
Tailwind
colors: {
  custom: {
    50: '#916ccc',
    500: '#5a2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb4;
$custom-light: #916ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb4",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 259.398,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44397,
    "c": 0.19507,
    "h": 291.1
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#5A2FB4
secondary
#ADC778
accent
#E246AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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