#5A2FB9#5A2FB9

#5A2FB9 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.201 H 290.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB9
RGBrgb(90, 47, 185)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 75%, 73%)
CMYKcmyk(51.4%, 74.6%, 0%, 27.5%)
CIE-LABlab(33.37, 51.18, -65.64)
CIE-LCHlch(33.37, 83.24, 307.94°)
OKLaboklab(44.85% 0.0688 -0.1886)
OKLCHoklch(44.85% 0.201 290.1)
XYZxyz(13.9874, 7.7089, 46.6405)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB9 #8EB92F
analogous
#2F49B9 #5A2FB9 #9F2FB9
triadic
#5A2FB9 #B95A2F #2FB95A
tetradic
#5A2FB9 #B92F49 #8EB92F #2FB99F
square
#5A2FB9 #B92F49 #8EB92F #2FB99F
split-complementary
#5A2FB9 #B99F2F #49B92F
monochromatic
#2B1657 #422388 #5A2FB9 #7A52D3 #A083DF

Accessibility & contrast

On white

8.26
#5A2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB9
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB9#FFFFFF#000000##FFFFFF
##5A2FB91.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#385572
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2fb9;
/* rgb */ color: rgb(90, 47, 185);
/* oklch */ color: oklch(44.8% 0.201 290.1);
Tailwind
colors: {
  custom: {
    50: '#926ccf',
    500: '#5a2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb9;
$custom-light: #926ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb9",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 258.696,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44848,
    "c": 0.20076,
    "h": 290.1
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

primary
#5A2FB9
secondary
#B1C97B
accent
#E345B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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