#5938BC#5938BC

#5938BC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.194 H 287.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5938BC
RGBrgb(89, 56, 188)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.7%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.17, 47.28, -64.47)
CIE-LCHlch(35.17, 79.95, 306.25°)
OKLaboklab(46.18% 0.0591 -0.1852)
OKLCHoklch(46.18% 0.194 287.7)
XYZxyz(14.6084, 8.5823, 48.4540)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938BC #9BBC38
analogous
#3859BC #5938BC #9B38BC
triadic
#5938BC #BC5938 #38BC59
tetradic
#5938BC #BC3859 #9BBC38 #38BC9B
square
#5938BC #BC3859 #9BBC38 #38BC9B
split-complementary
#5938BC #BC9B38 #59BC38
monochromatic
#2C1C5E #432A8D #5938BC #7D61D0 #A490DE

Accessibility & contrast

On white

7.73
#5938BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5938BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938BC
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938BC#FFFFFF#000000##FFFFFF
##5938BC1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#325A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5938bc;
/* rgb */ color: rgb(89, 56, 188);
/* oklch */ color: oklch(46.2% 0.194 287.7);
Tailwind
colors: {
  custom: {
    50: '#9171d1',
    500: '#5938bc',
    950: '#000000',
  },
}
SCSS
$custom: #5938bc;
$custom-light: #9171d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5938bc",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 255,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46179,
    "c": 0.19444,
    "h": 287.7
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#5938BC
secondary
#B8C987
accent
#DD4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5938BC

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

Preview Lab → · Contrast checker → · Palette generator →

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