#5938AC#5938AC

#5938AC is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.175 H 290.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5938AC
RGBrgb(89, 56, 172)
HSLhsl(257, 51%, 45%)
HSVhsv(257, 67%, 67%)
CMYKcmyk(48.3%, 67.4%, 0%, 32.5%)
CIE-LABlab(33.84, 42.66, -57.16)
CIE-LCHlch(33.84, 71.32, 306.73°)
OKLaboklab(44.81% 0.0618 -0.1637)
OKLCHoklch(44.81% 0.175 290.7)
XYZxyz(12.9783, 7.9303, 39.8686)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938AC #8BAC38
analogous
#3851AC #5938AC #9338AC
triadic
#5938AC #AC5938 #38AC59
tetradic
#5938AC #AC3851 #8BAC38 #38AC93
square
#5938AC #AC3851 #8BAC38 #38AC93
split-complementary
#5938AC #AC9338 #51AC38
monochromatic
#291A50 #41297E #5938AC #7858C9 #9E87D8

Accessibility & contrast

On white

8.12
#5938AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5938AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5938AC#FFFFFF#000000##FFFFFF
##5938AC1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#3E556D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5938ac;
/* rgb */ color: rgb(89, 56, 172);
/* oklch */ color: oklch(44.8% 0.175 290.7);
Tailwind
colors: {
  custom: {
    50: '#8f71c6',
    500: '#5938ac',
    950: '#000000',
  },
}
SCSS
$custom: #5938ac;
$custom-light: #8f71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5938ac",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 257.069,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44814,
    "c": 0.17501,
    "h": 290.7
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#5938AC
secondary
#AEC27E
accent
#DA4DB2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5938AC

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

Preview Lab → · Contrast checker → · Palette generator →

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