#5A2195#5A2195

#5A2195 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.176 H 300.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5A2195
RGBrgb(90, 33, 149)
HSLhsl(269, 64%, 36%)
HSVhsv(269, 78%, 58%)
CMYKcmyk(39.6%, 77.9%, 0%, 41.6%)
CIE-LABlab(27.93, 48.13, -52.85)
CIE-LCHlch(27.93, 71.48, 312.32°)
OKLaboklab(40.05% 0.0901 -0.1509)
OKLCHoklch(40.05% 0.176 300.8)
XYZxyz(10.1838, 5.4312, 28.9397)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2195 #5C9521
analogous
#212295 #5A2195 #942195
triadic
#5A2195 #955A21 #21955A
tetradic
#5A2195 #952122 #5C9521 #219594
square
#5A2195 #952122 #5C9521 #219594
split-complementary
#5A2195 #959421 #229521
monochromatic
#1D0B31 #3C1663 #5A2195 #782CC7 #9757DA

Accessibility & contrast

On white

10.07
#5A2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2195
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2195#FFFFFF#000000##FFFFFF
##5A21951.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#4D405A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2195;
/* rgb */ color: rgb(90, 33, 149);
/* oklch */ color: oklch(40.0% 0.176 300.8);
Tailwind
colors: {
  custom: {
    50: '#8f63b5',
    500: '#5a2195',
    950: '#000000',
  },
}
SCSS
$custom: #5a2195;
$custom-light: #8f63b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2195",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 269.483,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40049,
    "c": 0.17582,
    "h": 300.8
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#5A2195
secondary
#8ABE54
accent
#E74195
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2195

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

Preview Lab → · Contrast checker → · Palette generator →

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