#5938AA#5938AA

#5938AA is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.6% C 0.173 H 291.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5938AA
RGBrgb(89, 56, 170)
HSLhsl(257, 50%, 44%)
HSVhsv(257, 67%, 67%)
CMYKcmyk(47.6%, 67.1%, 0%, 33.3%)
CIE-LABlab(33.68, 42.08, -56.22)
CIE-LCHlch(33.68, 70.23, 306.81°)
OKLaboklab(44.65% 0.062 -0.161)
OKLCHoklch(44.65% 0.173 291.1)
XYZxyz(12.7877, 7.8540, 38.8646)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938AA #89AA38
analogous
#3850AA #5938AA #9238AA
triadic
#5938AA #AA5938 #38AA59
tetradic
#5938AA #AA3850 #89AA38 #38AA92
square
#5938AA #AA3850 #89AA38 #38AA92
split-complementary
#5938AA #AA9238 #50AA38
monochromatic
#291A4E #41297C #5938AA #7857C8 #9D85D7

Accessibility & contrast

On white

8.17
#5938AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5938AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5938AA#FFFFFF#000000##FFFFFF
##5938AA1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#40546C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5938aa;
/* rgb */ color: rgb(89, 56, 170);
/* oklch */ color: oklch(44.6% 0.173 291.1);
Tailwind
colors: {
  custom: {
    50: '#8f71c4',
    500: '#5938aa',
    950: '#000000',
  },
}
SCSS
$custom: #5938aa;
$custom-light: #8f71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5938aa",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 257.368,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44649,
    "c": 0.17255,
    "h": 291.1
  },
  "luminance": 0.07854
}

Semantic roles & 50–950 ramp

primary
#5938AA
secondary
#ADC17D
accent
#DA4EB1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5938AA

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

Preview Lab → · Contrast checker → · Palette generator →

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