#5A2B78#5A2B78

#5A2B78 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.130 H 309.8°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5A2B78
RGBrgb(90, 43, 120)
HSLhsl(277, 47%, 32%)
HSVhsv(277, 64%, 47%)
CMYKcmyk(25%, 64.2%, 0%, 52.9%)
CIE-LABlab(27.46, 36.02, -35.52)
CIE-LCHlch(27.46, 50.58, 315.40°)
OKLaboklab(39.01% 0.0834 -0.1001)
OKLCHoklch(39.01% 0.13 309.8)
XYZxyz(8.4698, 5.2576, 18.3343)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B78 #49782B
analogous
#342B78 #5A2B78 #782B70
triadic
#5A2B78 #785A2B #2B785A
tetradic
#5A2B78 #78342B #49782B #2B7078
square
#5A2B78 #78342B #49782B #2B7078
split-complementary
#5A2B78 #70782B #2B7834
monochromatic
#160B1E #381B4B #5A2B78 #7C3BA5 #9A5AC4

Accessibility & contrast

On white

10.24
#5A2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B78
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B78#FFFFFF#000000##FFFFFF
##5A2B781.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083F7A
Deuteranopia (green-blind)
#214276
Tritanopia (blue-blind)
#563A4D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2b78;
/* rgb */ color: rgb(90, 43, 120);
/* oklch */ color: oklch(39.0% 0.130 309.8);
Tailwind
colors: {
  custom: {
    50: '#8b679f',
    500: '#5a2b78',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b78;
$custom-light: #8b679f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b78",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 276.623,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39013,
    "c": 0.1303,
    "h": 309.8
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#5A2B78
secondary
#76AA55
accent
#D75185
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5A2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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