#5A2094#5A2094

#5A2094 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.176 H 301.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5A2094
RGBrgb(90, 32, 148)
HSLhsl(270, 64%, 35%)
HSVhsv(270, 78%, 58%)
CMYKcmyk(39.2%, 78.4%, 0%, 42%)
CIE-LABlab(27.70, 48.31, -52.62)
CIE-LCHlch(27.70, 71.43, 312.55°)
OKLaboklab(39.86% 0.0913 -0.1503)
OKLCHoklch(39.86% 0.176 301.3)
XYZxyz(10.0769, 5.3447, 28.5120)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2094 #5A9420
analogous
#202094 #5A2094 #942094
triadic
#5A2094 #945A20 #20945A
tetradic
#5A2094 #942020 #5A9420 #209494
square
#5A2094 #942020 #5A9420 #209494
split-complementary
#5A2094 #949420 #209420
monochromatic
#1D0A2F #3B1562 #5A2094 #792BC6 #9754DA

Accessibility & contrast

On white

10.15
#5A2094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A2094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2094
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2094#FFFFFF#000000##FFFFFF
##5A20941.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#4D3F59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2094;
/* rgb */ color: rgb(90, 32, 148);
/* oklch */ color: oklch(39.9% 0.176 301.3);
Tailwind
colors: {
  custom: {
    50: '#8f62b4',
    500: '#5a2094',
    950: '#000000',
  },
}
SCSS
$custom: #5a2094;
$custom-light: #8f62b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2094",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 270,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.17582,
    "h": 301.3
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#5A2094
secondary
#88BE52
accent
#E74094
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A2094

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

Preview Lab → · Contrast checker → · Palette generator →

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