#5938BE#5938BE

#5938BE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.197 H 287.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5938BE
RGBrgb(89, 56, 190)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.2%, 70.5%, 0%, 25.5%)
CIE-LABlab(35.34, 47.86, -65.37)
CIE-LCHlch(35.34, 81.02, 306.21°)
OKLaboklab(46.36% 0.0587 -0.1879)
OKLCHoklch(46.36% 0.197 287.4)
XYZxyz(14.8255, 8.6692, 49.5973)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938BE #9DBE38
analogous
#385ABE #5938BE #9C38BE
triadic
#5938BE #BE5938 #38BE59
tetradic
#5938BE #BE385A #9DBE38 #38BE9C
square
#5938BE #BE385A #9DBE38 #38BE9C
split-complementary
#5938BE #BE9C38 #5ABE38
monochromatic
#2D1C5F #432A8F #5938BE #7E62D1 #A592DF

Accessibility & contrast

On white

7.68
#5938BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5938BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5938BE#FFFFFF#000000##FFFFFF
##5938BE1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#315B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5938be;
/* rgb */ color: rgb(89, 56, 190);
/* oklch */ color: oklch(46.4% 0.197 287.4);
Tailwind
colors: {
  custom: {
    50: '#9271d3',
    500: '#5938be',
    950: '#000000',
  },
}
SCSS
$custom: #5938be;
$custom-light: #9271d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5938be",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 254.776,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46355,
    "c": 0.19683,
    "h": 287.4
  },
  "luminance": 0.0867
}

Semantic roles & 50–950 ramp

primary
#5938BE
secondary
#BACA88
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5938BE

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

Preview Lab → · Contrast checker → · Palette generator →

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