#5938BA#5938BA

#5938BA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.192 H 288.0°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5938BA
RGBrgb(89, 56, 186)
HSLhsl(255, 54%, 47%)
HSVhsv(255, 70%, 73%)
CMYKcmyk(52.2%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.00, 46.70, -63.57)
CIE-LCHlch(35.00, 78.88, 306.30°)
OKLaboklab(46% 0.0595 -0.1826)
OKLCHoklch(46% 0.192 288)
XYZxyz(14.3943, 8.4967, 47.3264)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938BA #99BA38
analogous
#3858BA #5938BA #9A38BA
triadic
#5938BA #BA5938 #38BA59
tetradic
#5938BA #BA3858 #99BA38 #38BA9A
square
#5938BA #BA3858 #99BA38 #38BA9A
split-complementary
#5938BA #BA9A38 #58BA38
monochromatic
#2C1C5C #422A8B #5938BA #7C60CF #A38FDD

Accessibility & contrast

On white

7.78
#5938BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5938BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5938BA#FFFFFF#000000##FFFFFF
##5938BA1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#345A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5938ba;
/* rgb */ color: rgb(89, 56, 186);
/* oklch */ color: oklch(46.0% 0.192 288.0);
Tailwind
colors: {
  custom: {
    50: '#9171d0',
    500: '#5938ba',
    950: '#000000',
  },
}
SCSS
$custom: #5938ba;
$custom-light: #9171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5938ba",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 255.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46004,
    "c": 0.19204,
    "h": 288
  },
  "luminance": 0.08497
}

Semantic roles & 50–950 ramp

primary
#5938BA
secondary
#B7C886
accent
#DD4BB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5938BA

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

Preview Lab → · Contrast checker → · Palette generator →

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