#5938AE#5938AE

#5938AE is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.177 H 290.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5938AE
RGBrgb(89, 56, 174)
HSLhsl(257, 51%, 45%)
HSVhsv(257, 68%, 68%)
CMYKcmyk(48.9%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.00, 43.23, -58.09)
CIE-LCHlch(34.00, 72.41, 306.66°)
OKLaboklab(44.98% 0.0615 -0.1665)
OKLCHoklch(44.98% 0.177 290.3)
XYZxyz(13.1718, 8.0077, 40.8878)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938AE #8DAE38
analogous
#3852AE #5938AE #9438AE
triadic
#5938AE #AE5938 #38AE59
tetradic
#5938AE #AE3852 #8DAE38 #38AE94
square
#5938AE #AE3852 #8DAE38 #38AE94
split-complementary
#5938AE #AE9438 #52AE38
monochromatic
#2A1A51 #412980 #5938AE #7959CA #9E88D9

Accessibility & contrast

On white

8.07
#5938AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5938AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938AE
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938AE#FFFFFF#000000##FFFFFF
##5938AE1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#3D556E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5938ae;
/* rgb */ color: rgb(89, 56, 174);
/* oklch */ color: oklch(45.0% 0.177 290.3);
Tailwind
colors: {
  custom: {
    50: '#8f71c7',
    500: '#5938ae',
    950: '#000000',
  },
}
SCSS
$custom: #5938ae;
$custom-light: #8f71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5938ae",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 256.78,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44981,
    "c": 0.17748,
    "h": 290.3
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#5938AE
secondary
#B0C37F
accent
#DB4DB3
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5938AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5938AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva