#5938C3#5938C3

#5938C3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.8% C 0.203 H 286.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5938C3
RGBrgb(89, 56, 195)
HSLhsl(254, 55%, 49%)
HSVhsv(254, 71%, 76%)
CMYKcmyk(54.4%, 71.3%, 0%, 23.5%)
CIE-LABlab(35.77, 49.31, -67.59)
CIE-LCHlch(35.77, 83.66, 306.11°)
OKLaboklab(46.8% 0.0577 -0.1944)
OKLCHoklch(46.8% 0.203 286.5)
XYZxyz(15.3814, 8.8915, 52.5249)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938C3 #A2C338
analogous
#385CC3 #5938C3 #9F38C3
triadic
#5938C3 #C35938 #38C359
tetradic
#5938C3 #C3385C #A2C338 #38C39F
square
#5938C3 #C3385C #A2C338 #38C39F
split-complementary
#5938C3 #C39F38 #5CC338
monochromatic
#2E1D64 #432A93 #5938C3 #7F65D3 #A795E1

Accessibility & contrast

On white

7.56
#5938C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5938C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938C3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938C3#FFFFFF#000000##FFFFFF
##5938C31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#2C5D7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5938c3;
/* rgb */ color: rgb(89, 56, 195);
/* oklch */ color: oklch(46.8% 0.203 286.5);
Tailwind
colors: {
  custom: {
    50: '#9272d6',
    500: '#5938c3',
    950: '#000000',
  },
}
SCSS
$custom: #5938c3;
$custom-light: #9272d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5938c3",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 254.245,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.20276,
    "h": 286.5
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#5938C3
secondary
#BCCC8B
accent
#DF49BB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5938C3

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

Preview Lab → · Contrast checker → · Palette generator →

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