#5A2BA5#5A2BA5

#5A2BA5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.182 H 295.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5A2BA5
RGBrgb(90, 43, 165)
HSLhsl(263, 59%, 41%)
HSVhsv(263, 74%, 65%)
CMYKcmyk(45.5%, 73.9%, 0%, 35.3%)
CIE-LABlab(30.92, 47.68, -57.71)
CIE-LCHlch(30.92, 74.86, 309.56°)
OKLaboklab(42.58% 0.0771 -0.1653)
OKLCHoklch(42.58% 0.182 295)
XYZxyz(11.8700, 6.6177, 36.2420)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BA5 #76A52B
analogous
#2B39A5 #5A2BA5 #972BA5
triadic
#5A2BA5 #A55A2B #2BA55A
tetradic
#5A2BA5 #A52B39 #76A52B #2BA597
square
#5A2BA5 #A52B39 #76A52B #2BA597
split-complementary
#5A2BA5 #A5972B #39A52B
monochromatic
#251244 #401E74 #5A2BA5 #7640CD #9971DA

Accessibility & contrast

On white

9.04
#5A2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BA5
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BA5#FFFFFF#000000##FFFFFF
##5A2BA51.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#454B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ba5;
/* rgb */ color: rgb(90, 43, 165);
/* oklch */ color: oklch(42.6% 0.182 295.0);
Tailwind
colors: {
  custom: {
    50: '#9069c1',
    500: '#5a2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ba5;
$custom-light: #9069c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ba5",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 263.115,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.1824,
    "h": 295
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#5A2BA5
secondary
#A0C16B
accent
#E246A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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