#5938BF#5938BF

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

Color values

HEX#5938BF
RGBrgb(89, 56, 191)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.43, 48.15, -65.81)
CIE-LCHlch(35.43, 81.55, 306.19°)
OKLaboklab(46.44% 0.0585 -0.1892)
OKLCHoklch(46.44% 0.198 287.2)
XYZxyz(14.9352, 8.7130, 50.1749)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938BF #9EBF38
analogous
#385ABF #5938BF #9C38BF
triadic
#5938BF #BF5938 #38BF59
tetradic
#5938BF #BF385A #9EBF38 #38BF9C
square
#5938BF #BF385A #9EBF38 #38BF9C
split-complementary
#5938BF #BF9C38 #5ABF38
monochromatic
#2D1C60 #432A90 #5938BF #7E63D1 #A592DF

Accessibility & contrast

On white

7.66
#5938BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5938BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5938BF#FFFFFF#000000##FFFFFF
##5938BF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#305C78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5938bf;
/* rgb */ color: rgb(89, 56, 191);
/* oklch */ color: oklch(46.4% 0.198 287.2);
Tailwind
colors: {
  custom: {
    50: '#9271d3',
    500: '#5938bf',
    950: '#000000',
  },
}
SCSS
$custom: #5938bf;
$custom-light: #9271d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5938bf",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 254.667,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46443,
    "c": 0.19801,
    "h": 287.2
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#5938BF
secondary
#BACA89
accent
#DE4ABA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5938BF

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

Preview Lab → · Contrast checker → · Palette generator →

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