#5A2BA4#5A2BA4

#5A2BA4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.181 H 295.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5A2BA4
RGBrgb(90, 43, 164)
HSLhsl(263, 58%, 41%)
HSVhsv(263, 74%, 64%)
CMYKcmyk(45.1%, 73.8%, 0%, 35.7%)
CIE-LABlab(30.83, 47.41, -57.24)
CIE-LCHlch(30.83, 74.33, 309.63°)
OKLaboklab(42.49% 0.0774 -0.1639)
OKLCHoklch(42.49% 0.181 295.3)
XYZxyz(11.7794, 6.5815, 35.7645)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BA4 #75A42B
analogous
#2B38A4 #5A2BA4 #962BA4
triadic
#5A2BA4 #A45A2B #2BA45A
tetradic
#5A2BA4 #A42B38 #75A42B #2BA496
square
#5A2BA4 #A42B38 #75A42B #2BA496
split-complementary
#5A2BA4 #A4962B #38A42B
monochromatic
#251243 #3F1E74 #5A2BA4 #763FCD #9970D9

Accessibility & contrast

On white

9.07
#5A2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2BA4
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BA4#FFFFFF#000000##FFFFFF
##5A2BA41.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#454A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ba4;
/* rgb */ color: rgb(90, 43, 164);
/* oklch */ color: oklch(42.5% 0.181 295.3);
Tailwind
colors: {
  custom: {
    50: '#9069c0',
    500: '#5a2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ba4;
$custom-light: #9069c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ba4",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 263.306,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42493,
    "c": 0.18127,
    "h": 295.3
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#5A2BA4
secondary
#9FC16A
accent
#E246A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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