#5938CA#5938CA

#5938CA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.211 H 285.5°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5938CA
RGBrgb(89, 56, 202)
HSLhsl(254, 58%, 51%)
HSVhsv(254, 72%, 79%)
CMYKcmyk(55.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.40, 51.33, -70.65)
CIE-LCHlch(36.40, 87.33, 306.00°)
OKLaboklab(47.43% 0.0563 -0.2033)
OKLCHoklch(47.43% 0.211 285.5)
XYZxyz(16.1914, 9.2155, 56.7913)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938CA #A9CA38
analogous
#3860CA #5938CA #A238CA
triadic
#5938CA #CA5938 #38CA59
tetradic
#5938CA #CA3860 #A9CA38 #38CAA2
square
#5938CA #CA3860 #A9CA38 #38CAA2
split-complementary
#5938CA #CAA238 #60CA38
monochromatic
#2E1D6B #43299B #5938CA #8168D7 #AA99E4

Accessibility & contrast

On white

7.39
#5938CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5938CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938CA
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938CA#FFFFFF#000000##FFFFFF
##5938CA1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#23607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5938ca;
/* rgb */ color: rgb(89, 56, 202);
/* oklch */ color: oklch(47.4% 0.211 285.5);
Tailwind
colors: {
  custom: {
    50: '#9472db',
    500: '#5938ca',
    950: '#000000',
  },
}
SCSS
$custom: #5938ca;
$custom-light: #9472db;
$custom-dark: #000000;
JSON
{
  "hex": "#5938ca",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 253.562,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47429,
    "c": 0.21099,
    "h": 285.5
  },
  "luminance": 0.09216
}

Semantic roles & 50–950 ramp

primary
#5938CA
secondary
#C1CF8E
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5938CA

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

Preview Lab → · Contrast checker → · Palette generator →

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