#5A2B9C#5A2B9C

#5A2B9C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.172 H 297.3°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5A2B9C
RGBrgb(90, 43, 156)
HSLhsl(265, 57%, 39%)
HSVhsv(265, 72%, 61%)
CMYKcmyk(42.3%, 72.4%, 0%, 38.8%)
CIE-LABlab(30.16, 45.28, -53.49)
CIE-LCHlch(30.16, 70.08, 310.25°)
OKLaboklab(41.81% 0.0791 -0.1529)
OKLCHoklch(41.81% 0.172 297.3)
XYZxyz(11.0795, 6.3015, 32.0786)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B9C #6D9C2B
analogous
#2B349C #5A2B9C #932B9C
triadic
#5A2B9C #9C5A2B #2B9C5A
tetradic
#5A2B9C #9C2B34 #6D9C2B #2B9C93
square
#5A2B9C #9C2B34 #6D9C2B #2B9C93
split-complementary
#5A2B9C #9C932B #349C2B
monochromatic
#23113C #3E1E6C #5A2B9C #763BC9 #986BD6

Accessibility & contrast

On white

9.29
#5A2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A2B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B9C
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B9C#FFFFFF#000000##FFFFFF
##5A2B9C1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#494760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2b9c;
/* rgb */ color: rgb(90, 43, 156);
/* oklch */ color: oklch(41.8% 0.172 297.3);
Tailwind
colors: {
  custom: {
    50: '#8f69ba',
    500: '#5a2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b9c;
$custom-light: #8f69ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b9c",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 264.956,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41807,
    "c": 0.17215,
    "h": 297.3
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#5A2B9C
secondary
#99BD66
accent
#E048A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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