#5A339F#5A339F

#5A339F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.166 H 295.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5A339F
RGBrgb(90, 51, 159)
HSLhsl(262, 51%, 41%)
HSVhsv(262, 68%, 62%)
CMYKcmyk(43.4%, 67.9%, 0%, 37.6%)
CIE-LABlab(31.91, 41.92, -52.47)
CIE-LCHlch(31.91, 67.16, 308.62°)
OKLaboklab(43.13% 0.0703 -0.1499)
OKLCHoklch(43.13% 0.166 295.1)
XYZxyz(11.6566, 7.0442, 33.5397)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A339F #789F33
analogous
#33429F #5A339F #90339F
triadic
#5A339F #9F5A33 #339F5A
tetradic
#5A339F #9F3342 #789F33 #339F90
square
#5A339F #9F3342 #789F33 #339F90
split-complementary
#5A339F #9F9033 #429F33
monochromatic
#261542 #402471 #5A339F #774AC5 #9A79D4

Accessibility & contrast

On white

8.72
#5A339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A339F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A339F#FFFFFF#000000##FFFFFF
##5A339F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#474D64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a339f;
/* rgb */ color: rgb(90, 51, 159);
/* oklch */ color: oklch(43.1% 0.166 295.1);
Tailwind
colors: {
  custom: {
    50: '#8e6dbc',
    500: '#5a339f',
    950: '#000000',
  },
}
SCSS
$custom: #5a339f;
$custom-light: #8e6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a339f",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 261.667,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43129,
    "c": 0.16559,
    "h": 295.1
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#5A339F
secondary
#A1BC71
accent
#DB4DA8
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A339F

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

Preview Lab → · Contrast checker → · Palette generator →

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