#5A2098#5A2098

#5A2098 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.180 H 300.1°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5A2098
RGBrgb(90, 32, 152)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 79%, 60%)
CMYKcmyk(40.8%, 78.9%, 0%, 40.4%)
CIE-LABlab(28.04, 49.30, -54.51)
CIE-LCHlch(28.04, 73.49, 312.13°)
OKLaboklab(40.21% 0.0902 -0.1558)
OKLCHoklch(40.21% 0.18 300.1)
XYZxyz(10.3990, 5.4736, 30.2083)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2098 #5E9820
analogous
#202298 #5A2098 #962098
triadic
#5A2098 #985A20 #20985A
tetradic
#5A2098 #982022 #5E9820 #209896
square
#5A2098 #982022 #5E9820 #209896
split-complementary
#5A2098 #989620 #229820
monochromatic
#1E0B33 #3C1565 #5A2098 #782BCB #9757DC

Accessibility & contrast

On white

10.02
#5A2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2098
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2098#FFFFFF#000000##FFFFFF
##5A20981.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#4B405C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2098;
/* rgb */ color: rgb(90, 32, 152);
/* oklch */ color: oklch(40.2% 0.180 300.1);
Tailwind
colors: {
  custom: {
    50: '#8f63b7',
    500: '#5a2098',
    950: '#000000',
  },
}
SCSS
$custom: #5a2098;
$custom-light: #8f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2098",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 269,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4021,
    "c": 0.18002,
    "h": 300.1
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#5A2098
secondary
#8CBF54
accent
#E84097
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2098

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

Preview Lab → · Contrast checker → · Palette generator →

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