#5938CD#5938CD

#5938CD is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.214 H 285.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5938CD
RGBrgb(89, 56, 205)
HSLhsl(253, 60%, 51%)
HSVhsv(253, 73%, 80%)
CMYKcmyk(56.6%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.67, 52.19, -71.95)
CIE-LCHlch(36.67, 88.89, 305.96°)
OKLaboklab(47.7% 0.0556 -0.2072)
OKLCHoklch(47.7% 0.214 285)
XYZxyz(16.5501, 9.3590, 58.6801)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938CD #ACCD38
analogous
#3861CD #5938CD #A338CD
triadic
#5938CD #CD5938 #38CD59
tetradic
#5938CD #CD3861 #ACCD38 #38CDA3
square
#5938CD #CD3861 #ACCD38 #38CDA3
split-complementary
#5938CD #CDA338 #61CD38
monochromatic
#2E1C6F #4328A0 #5938CD #8269D9 #AB9AE6

Accessibility & contrast

On white

7.31
#5938CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5938CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938CD
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938CD#FFFFFF#000000##FFFFFF
##5938CD1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#1E617F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5938cd;
/* rgb */ color: rgb(89, 56, 205);
/* oklch */ color: oklch(47.7% 0.214 285.0);
Tailwind
colors: {
  custom: {
    50: '#9472dd',
    500: '#5938cd',
    950: '#000000',
  },
}
SCSS
$custom: #5938cd;
$custom-light: #9472dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5938cd",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 253.289,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47703,
    "c": 0.21449,
    "h": 285
  },
  "luminance": 0.0936
}

Semantic roles & 50–950 ramp

primary
#5938CD
secondary
#C3D18F
accent
#E345C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5938CD

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

Preview Lab → · Contrast checker → · Palette generator →

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