#5A2289#5A2289

#5A2289 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.162 H 304.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5A2289
RGBrgb(90, 34, 137)
HSLhsl(273, 60%, 34%)
HSVhsv(273, 75%, 54%)
CMYKcmyk(34.3%, 75.2%, 0%, 46.3%)
CIE-LABlab(27.08, 44.71, -46.80)
CIE-LCHlch(27.08, 64.73, 313.70°)
OKLaboklab(39.14% 0.092 -0.1332)
OKLCHoklch(39.14% 0.162 304.6)
XYZxyz(9.3028, 5.1239, 24.1610)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2289 #518922
analogous
#262289 #5A2289 #892284
triadic
#5A2289 #895A22 #22895A
tetradic
#5A2289 #892622 #518922 #228489
square
#5A2289 #892622 #518922 #228489
split-complementary
#5A2289 #848922 #228926
monochromatic
#1A0A27 #3A1658 #5A2289 #7A2EBA #9851D4

Accessibility & contrast

On white

10.37
#5A2289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2289
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2289#FFFFFF#000000##FFFFFF
##5A22891.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#513B53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a2289;
/* rgb */ color: rgb(90, 34, 137);
/* oklch */ color: oklch(39.1% 0.162 304.6);
Tailwind
colors: {
  custom: {
    50: '#8d63ac',
    500: '#5a2289',
    950: '#000000',
  },
}
SCSS
$custom: #5a2289;
$custom-light: #8d63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2289",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 272.621,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39143,
    "c": 0.16186,
    "h": 304.6
  },
  "luminance": 0.05124
}

Semantic roles & 50–950 ramp

primary
#5A2289
secondary
#7FB84F
accent
#E3448D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2289

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

Preview Lab → · Contrast checker → · Palette generator →

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