#5938CF#5938CF

#5938CF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.217 H 284.7°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5938CF
RGBrgb(89, 56, 207)
HSLhsl(253, 61%, 52%)
HSVhsv(253, 73%, 81%)
CMYKcmyk(57%, 72.9%, 0%, 18.8%)
CIE-LABlab(36.85, 52.77, -72.81)
CIE-LCHlch(36.85, 89.93, 305.93°)
OKLaboklab(47.89% 0.0551 -0.2097)
OKLCHoklch(47.89% 0.217 284.7)
XYZxyz(16.7931, 9.4562, 59.9597)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938CF #AECF38
analogous
#3862CF #5938CF #A538CF
triadic
#5938CF #CF5938 #38CF59
tetradic
#5938CF #CF3862 #AECF38 #38CFA5
square
#5938CF #CF3862 #AECF38 #38CFA5
split-complementary
#5938CF #CFA538 #62CF38
monochromatic
#2E1B71 #4227A3 #5938CF #8269DB #AB9BE7

Accessibility & contrast

On white

7.26
#5938CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5938CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938CF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938CF#FFFFFF#000000##FFFFFF
##5938CF1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#1B6280
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5938cf;
/* rgb */ color: rgb(89, 56, 207);
/* oklch */ color: oklch(47.9% 0.217 284.7);
Tailwind
colors: {
  custom: {
    50: '#9472df',
    500: '#5938cf',
    950: '#000000',
  },
}
SCSS
$custom: #5938cf;
$custom-light: #9472df;
$custom-dark: #000000;
JSON
{
  "hex": "#5938cf",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 253.113,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47887,
    "c": 0.21681,
    "h": 284.7
  },
  "luminance": 0.09457
}

Semantic roles & 50–950 ramp

primary
#5938CF
secondary
#C4D390
accent
#E444C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5938CF

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

Preview Lab → · Contrast checker → · Palette generator →

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