#5A2189#5A2189

#5A2189 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.163 H 304.8°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5A2189
RGBrgb(90, 33, 137)
HSLhsl(273, 61%, 33%)
HSVhsv(273, 76%, 54%)
CMYKcmyk(34.3%, 75.9%, 0%, 46.3%)
CIE-LABlab(26.93, 45.16, -47.06)
CIE-LCHlch(26.93, 65.22, 313.82°)
OKLaboklab(39.03% 0.093 -0.1339)
OKLCHoklch(39.03% 0.163 304.8)
XYZxyz(9.2746, 5.0676, 24.1516)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2189 #508921
analogous
#262189 #5A2189 #892184
triadic
#5A2189 #895A21 #21895A
tetradic
#5A2189 #892621 #508921 #218489
square
#5A2189 #892621 #508921 #218489
split-complementary
#5A2189 #848921 #218926
monochromatic
#190926 #3A1558 #5A2189 #7A2DBA #9950D5

Accessibility & contrast

On white

10.43
#5A2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2189
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2189#FFFFFF#000000##FFFFFF
##5A21891.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2189;
/* rgb */ color: rgb(90, 33, 137);
/* oklch */ color: oklch(39.0% 0.163 304.8);
Tailwind
colors: {
  custom: {
    50: '#8d62ac',
    500: '#5a2189',
    950: '#000000',
  },
}
SCSS
$custom: #5a2189;
$custom-light: #8d62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2189",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 272.885,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39031,
    "c": 0.16304,
    "h": 304.8
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#5A2189
secondary
#7EB84E
accent
#E4448C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2189

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

Preview Lab → · Contrast checker → · Palette generator →

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