#5A2B72#5A2B72

#5A2B72 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.123 H 312.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5A2B72
RGBrgb(90, 43, 114)
HSLhsl(280, 45%, 31%)
HSVhsv(280, 62%, 45%)
CMYKcmyk(21.1%, 62.3%, 0%, 55.3%)
CIE-LABlab(27.06, 34.57, -32.33)
CIE-LCHlch(27.06, 47.33, 316.92°)
OKLaboklab(38.6% 0.0834 -0.0907)
OKLCHoklch(38.6% 0.123 312.6)
XYZxyz(8.1171, 5.1165, 16.4763)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B72 #43722B
analogous
#362B72 #5A2B72 #722B66
triadic
#5A2B72 #725A2B #2B725A
tetradic
#5A2B72 #72362B #43722B #2B6672
square
#5A2B72 #72362B #43722B #2B6672
split-complementary
#5A2B72 #66722B #2B7236
monochromatic
#140919 #371A46 #5A2B72 #7D3C9E #9D58C0

Accessibility & contrast

On white

10.38
#5A2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5A2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B72
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B72#FFFFFF#000000##FFFFFF
##5A2B721.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D74
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#57384A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a2b72;
/* rgb */ color: rgb(90, 43, 114);
/* oklch */ color: oklch(38.6% 0.123 312.6);
Tailwind
colors: {
  custom: {
    50: '#8b679b',
    500: '#5a2b72',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b72;
$custom-light: #8b679b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b72",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 279.718,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.12328,
    "h": 312.6
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#5A2B72
secondary
#70A455
accent
#D5537F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5A2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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