#5938BB#5938BB

#5938BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.193 H 287.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5938BB
RGBrgb(89, 56, 187)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 73%)
CMYKcmyk(52.4%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.08, 46.99, -64.02)
CIE-LCHlch(35.08, 79.42, 306.28°)
OKLaboklab(46.09% 0.0593 -0.1839)
OKLCHoklch(46.09% 0.193 287.9)
XYZxyz(14.5010, 8.5393, 47.8882)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938BB #9ABB38
analogous
#3858BB #5938BB #9B38BB
triadic
#5938BB #BB5938 #38BB59
tetradic
#5938BB #BB3858 #9ABB38 #38BB9B
square
#5938BB #BB3858 #9ABB38 #38BB9B
split-complementary
#5938BB #BB9B38 #58BB38
monochromatic
#2C1C5D #432A8C #5938BB #7D61D0 #A390DE

Accessibility & contrast

On white

7.75
#5938BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5938BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5938BB#FFFFFF#000000##FFFFFF
##5938BB1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#335A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5938bb;
/* rgb */ color: rgb(89, 56, 187);
/* oklch */ color: oklch(46.1% 0.193 287.9);
Tailwind
colors: {
  custom: {
    50: '#9171d0',
    500: '#5938bb',
    950: '#000000',
  },
}
SCSS
$custom: #5938bb;
$custom-light: #9171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5938bb",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 255.115,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46092,
    "c": 0.19324,
    "h": 287.9
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5938BB

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

Preview Lab → · Contrast checker → · Palette generator →

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