#5939CF#5939CF

#5939CF is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.216 H 284.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5939CF
RGBrgb(89, 57, 207)
HSLhsl(253, 61%, 52%)
HSVhsv(253, 72%, 81%)
CMYKcmyk(57%, 72.5%, 0%, 18.8%)
CIE-LABlab(37.03, 52.26, -72.52)
CIE-LCHlch(37.03, 89.38, 305.78°)
OKLaboklab(48.02% 0.0544 -0.2088)
OKLCHoklch(48.02% 0.216 284.6)
XYZxyz(16.8420, 9.5541, 59.9760)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939CF #AFCF39
analogous
#3964CF #5939CF #A439CF
triadic
#5939CF #CF5939 #39CF59
tetradic
#5939CF #CF3964 #AFCF39 #39CFA4
square
#5939CF #CF3964 #AFCF39 #39CFA4
split-complementary
#5939CF #CFA439 #64CF39
monochromatic
#2E1C72 #4228A3 #5939CF #826ADB #AC9CE7

Accessibility & contrast

On white

7.21
#5939CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5939CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939CF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939CF#FFFFFF#000000##FFFFFF
##5939CF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5939cf;
/* rgb */ color: rgb(89, 57, 207);
/* oklch */ color: oklch(48.0% 0.216 284.6);
Tailwind
colors: {
  custom: {
    50: '#9473df',
    500: '#5939cf',
    950: '#000000',
  },
}
SCSS
$custom: #5939cf;
$custom-light: #9473df;
$custom-dark: #000000;
JSON
{
  "hex": "#5939cf",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 207
  },
  "hsl": {
    "h": 252.8,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.21578,
    "h": 284.6
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#5939CF
secondary
#C5D391
accent
#E444C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5939CF

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

Preview Lab → · Contrast checker → · Palette generator →

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