#5938C5#5938C5

#5938C5 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.205 H 286.2°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5938C5
RGBrgb(89, 56, 197)
HSLhsl(254, 56%, 50%)
HSVhsv(254, 72%, 77%)
CMYKcmyk(54.8%, 71.6%, 0%, 22.7%)
CIE-LABlab(35.95, 49.88, -68.47)
CIE-LCHlch(35.95, 84.71, 306.08°)
OKLaboklab(46.98% 0.0573 -0.1969)
OKLCHoklch(46.98% 0.205 286.2)
XYZxyz(15.6090, 8.9826, 53.7238)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938C5 #A4C538
analogous
#385DC5 #5938C5 #A038C5
triadic
#5938C5 #C55938 #38C559
tetradic
#5938C5 #C5385D #A4C538 #38C5A0
square
#5938C5 #C5385D #A4C538 #38C5A0
split-complementary
#5938C5 #C5A038 #5DC538
monochromatic
#2E1D66 #432A95 #5938C5 #8067D4 #A896E1

Accessibility & contrast

On white

7.51
#5938C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5938C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938C5
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938C5#FFFFFF#000000##FFFFFF
##5938C51.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#295E7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5938c5;
/* rgb */ color: rgb(89, 56, 197);
/* oklch */ color: oklch(47.0% 0.205 286.2);
Tailwind
colors: {
  custom: {
    50: '#9372d8',
    500: '#5938c5',
    950: '#000000',
  },
}
SCSS
$custom: #5938c5;
$custom-light: #9372d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5938c5",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 254.043,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46977,
    "c": 0.20512,
    "h": 286.2
  },
  "luminance": 0.08983
}

Semantic roles & 50–950 ramp

primary
#5938C5
secondary
#BECD8C
accent
#DF49BC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5938C5

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

Preview Lab → · Contrast checker → · Palette generator →

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