#5A2B9B#5A2B9B

#5A2B9B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.171 H 297.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5A2B9B
RGBrgb(90, 43, 155)
HSLhsl(265, 57%, 39%)
HSVhsv(265, 72%, 61%)
CMYKcmyk(41.9%, 72.3%, 0%, 39.2%)
CIE-LABlab(30.08, 45.01, -53.02)
CIE-LCHlch(30.08, 69.55, 310.33°)
OKLaboklab(41.72% 0.0793 -0.1515)
OKLCHoklch(41.72% 0.171 297.6)
XYZxyz(10.9952, 6.2678, 31.6345)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B9B #6C9B2B
analogous
#2B349B #5A2B9B #922B9B
triadic
#5A2B9B #9B5A2B #2B9B5A
tetradic
#5A2B9B #9B2B34 #6C9B2B #2B9B92
square
#5A2B9B #9B2B34 #6C9B2B #2B9B92
split-complementary
#5A2B9B #9B922B #349B2B
monochromatic
#22103B #3E1E6B #5A2B9B #763BC9 #986BD6

Accessibility & contrast

On white

9.32
#5A2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B9B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B9B#FFFFFF#000000##FFFFFF
##5A2B9B1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4A4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2b9b;
/* rgb */ color: rgb(90, 43, 155);
/* oklch */ color: oklch(41.7% 0.171 297.6);
Tailwind
colors: {
  custom: {
    50: '#8f68b9',
    500: '#5a2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b9b;
$custom-light: #8f68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b9b",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 265.179,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.171,
    "h": 297.6
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

primary
#5A2B9B
secondary
#98BC65
accent
#E048A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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