#5A209F#5A209F

#5A209F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.187 H 298.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5A209F
RGBrgb(90, 32, 159)
HSLhsl(267, 66%, 37%)
HSVhsv(267, 80%, 62%)
CMYKcmyk(43.4%, 79.9%, 0%, 37.6%)
CIE-LABlab(28.67, 51.05, -57.76)
CIE-LCHlch(28.67, 77.08, 311.47°)
OKLaboklab(40.84% 0.0882 -0.1653)
OKLCHoklch(40.84% 0.187 298.1)
XYZxyz(10.9893, 5.7097, 33.3173)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A209F #659F20
analogous
#20259F #5A209F #9A209F
triadic
#5A209F #9F5A20 #209F5A
tetradic
#5A209F #9F2025 #659F20 #209F9A
square
#5A209F #9F2025 #659F20 #209F9A
split-complementary
#5A209F #9F9A20 #259F20
monochromatic
#200B39 #3D166C #5A209F #772AD2 #975BDE

Accessibility & contrast

On white

9.80
#5A209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A209F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A209F#FFFFFF#000000##FFFFFF
##5A209F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#484360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a209f;
/* rgb */ color: rgb(90, 32, 159);
/* oklch */ color: oklch(40.8% 0.187 298.1);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5a209f',
    950: '#000000',
  },
}
SCSS
$custom: #5a209f;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a209f",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 267.402,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.18738,
    "h": 298.1
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#5A209F
secondary
#92C259
accent
#E93E9B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A209F

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

Preview Lab → · Contrast checker → · Palette generator →

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