#5A2BA9#5A2BA9

#5A2BA9 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.187 H 294.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5A2BA9
RGBrgb(90, 43, 169)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 75%, 66%)
CMYKcmyk(46.7%, 74.6%, 0%, 33.7%)
CIE-LABlab(31.27, 48.75, -59.55)
CIE-LCHlch(31.27, 76.96, 309.31°)
OKLaboklab(42.93% 0.0762 -0.1707)
OKLCHoklch(42.93% 0.187 294.1)
XYZxyz(12.2398, 6.7656, 38.1894)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BA9 #7AA92B
analogous
#2B3BA9 #5A2BA9 #992BA9
triadic
#5A2BA9 #A95A2B #2BA95A
tetradic
#5A2BA9 #A92B3B #7AA92B #2BA999
square
#5A2BA9 #A92B3B #7AA92B #2BA999
split-complementary
#5A2BA9 #A9992B #3BA92B
monochromatic
#261247 #401F78 #5A2BA9 #7742CF #9A73DB

Accessibility & contrast

On white

8.92
#5A2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BA9
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BA9#FFFFFF#000000##FFFFFF
##5A2BA91.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#434C68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2ba9;
/* rgb */ color: rgb(90, 43, 169);
/* oklch */ color: oklch(42.9% 0.187 294.1);
Tailwind
colors: {
  custom: {
    50: '#9069c4',
    500: '#5a2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ba9;
$custom-light: #9069c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ba9",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 262.381,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42932,
    "c": 0.18692,
    "h": 294.1
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#5A2BA9
secondary
#A3C36D
accent
#E345A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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