#5938BD#5938BD

#5938BD is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.196 H 287.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5938BD
RGBrgb(89, 56, 189)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.25, 47.57, -64.92)
CIE-LCHlch(35.25, 80.48, 306.23°)
OKLaboklab(46.27% 0.0589 -0.1865)
OKLCHoklch(46.27% 0.196 287.5)
XYZxyz(14.7166, 8.6256, 49.0237)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938BD #9CBD38
analogous
#3859BD #5938BD #9B38BD
triadic
#5938BD #BD5938 #38BD59
tetradic
#5938BD #BD3859 #9CBD38 #38BD9B
square
#5938BD #BD3859 #9CBD38 #38BD9B
split-complementary
#5938BD #BD9B38 #59BD38
monochromatic
#2D1C5F #432A8E #5938BD #7D62D0 #A491DE

Accessibility & contrast

On white

7.71
#5938BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5938BD
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938BD#FFFFFF#000000##FFFFFF
##5938BD1.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#325B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5938bd;
/* rgb */ color: rgb(89, 56, 189);
/* oklch */ color: oklch(46.3% 0.196 287.5);
Tailwind
colors: {
  custom: {
    50: '#9271d2',
    500: '#5938bd',
    950: '#000000',
  },
}
SCSS
$custom: #5938bd;
$custom-light: #9271d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5938bd",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 254.887,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.19563,
    "h": 287.5
  },
  "luminance": 0.08626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5938BD

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

Preview Lab → · Contrast checker → · Palette generator →

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