#5A209C#5A209C

#5A209C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.184 H 298.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5A209C
RGBrgb(90, 32, 156)
HSLhsl(268, 66%, 37%)
HSVhsv(268, 79%, 61%)
CMYKcmyk(42.3%, 79.5%, 0%, 38.8%)
CIE-LABlab(28.40, 50.30, -56.37)
CIE-LCHlch(28.40, 75.55, 311.74°)
OKLaboklab(40.57% 0.089 -0.1613)
OKLCHoklch(40.57% 0.184 298.9)
XYZxyz(10.7322, 5.6068, 31.9628)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A209C #629C20
analogous
#20249C #5A209C #98209C
triadic
#5A209C #9C5A20 #209C5A
tetradic
#5A209C #9C2024 #629C20 #209C98
square
#5A209C #9C2024 #629C20 #209C98
split-complementary
#5A209C #9C9820 #249C20
monochromatic
#1F0B36 #3D1669 #5A209C #772ACF #9759DD

Accessibility & contrast

On white

9.90
#5A209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A209C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A209C
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A209C#FFFFFF#000000##FFFFFF
##5A209C1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#4A425E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a209c;
/* rgb */ color: rgb(90, 32, 156);
/* oklch */ color: oklch(40.6% 0.184 298.9);
Tailwind
colors: {
  custom: {
    50: '#8f63ba',
    500: '#5a209c',
    950: '#000000',
  },
}
SCSS
$custom: #5a209c;
$custom-light: #8f63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a209c",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 268.065,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40566,
    "c": 0.18423,
    "h": 298.9
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#5A209C
secondary
#8FC157
accent
#E93F99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A209C

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

Preview Lab → · Contrast checker → · Palette generator →

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