#5A2BA6#5A2BA6

#5A2BA6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.184 H 294.8°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A2BA6
RGBrgb(90, 43, 166)
HSLhsl(263, 59%, 41%)
HSVhsv(263, 74%, 65%)
CMYKcmyk(45.8%, 74.1%, 0%, 34.9%)
CIE-LABlab(31.01, 47.95, -58.17)
CIE-LCHlch(31.01, 75.39, 309.50°)
OKLaboklab(42.67% 0.0769 -0.1666)
OKLCHoklch(42.67% 0.184 294.8)
XYZxyz(11.9614, 6.6543, 36.7232)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BA6 #77A62B
analogous
#2B39A6 #5A2BA6 #972BA6
triadic
#5A2BA6 #A65A2B #2BA65A
tetradic
#5A2BA6 #A62B39 #77A62B #2BA697
square
#5A2BA6 #A62B39 #77A62B #2BA697
split-complementary
#5A2BA6 #A6972B #39A62B
monochromatic
#251245 #401E75 #5A2BA6 #7641CE #9971DA

Accessibility & contrast

On white

9.01
#5A2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BA6
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BA6#FFFFFF#000000##FFFFFF
##5A2BA61.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#444B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ba6;
/* rgb */ color: rgb(90, 43, 166);
/* oklch */ color: oklch(42.7% 0.184 294.8);
Tailwind
colors: {
  custom: {
    50: '#9069c1',
    500: '#5a2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ba6;
$custom-light: #9069c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ba6",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 262.927,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.18353,
    "h": 294.8
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#5A2BA6
secondary
#A1C16B
accent
#E246A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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