#5A339C#5A339C

#5A339C is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.162 H 295.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5A339C
RGBrgb(90, 51, 156)
HSLhsl(262, 51%, 41%)
HSVhsv(262, 67%, 61%)
CMYKcmyk(42.3%, 67.3%, 0%, 38.8%)
CIE-LABlab(31.67, 41.09, -51.03)
CIE-LCHlch(31.67, 65.52, 308.84°)
OKLaboklab(42.89% 0.0707 -0.1457)
OKLCHoklch(42.89% 0.162 295.9)
XYZxyz(11.3994, 6.9414, 32.1853)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A339C #759C33
analogous
#33409C #5A339C #8E339C
triadic
#5A339C #9C5A33 #339C5A
tetradic
#5A339C #9C3340 #759C33 #339C8E
square
#5A339C #9C3340 #759C33 #339C8E
split-complementary
#5A339C #9C8E33 #409C33
monochromatic
#251540 #3F246E #5A339C #7649C3 #9977D3

Accessibility & contrast

On white

8.79
#5A339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A339C
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A339C#FFFFFF#000000##FFFFFF
##5A339C1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#494C63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a339c;
/* rgb */ color: rgb(90, 51, 156);
/* oklch */ color: oklch(42.9% 0.162 295.9);
Tailwind
colors: {
  custom: {
    50: '#8e6dba',
    500: '#5a339c',
    950: '#000000',
  },
}
SCSS
$custom: #5a339c;
$custom-light: #8e6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a339c",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 262.286,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42887,
    "c": 0.16195,
    "h": 295.9
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#5A339C
secondary
#9FBB70
accent
#DA4EA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A339C

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

Preview Lab → · Contrast checker → · Palette generator →

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