#5940C9#5940C9

#5940C9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.4% C 0.201 H 284.4°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5940C9
RGBrgb(89, 64, 201)
HSLhsl(251, 56%, 52%)
HSVhsv(251, 68%, 79%)
CMYKcmyk(55.7%, 68.2%, 0%, 21.2%)
CIE-LABlab(37.85, 46.75, -67.68)
CIE-LCHlch(37.85, 82.26, 304.63°)
OKLaboklab(48.44% 0.0499 -0.1947)
OKLCHoklch(48.44% 0.201 284.4)
XYZxyz(16.4926, 10.0067, 56.3094)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940C9 #B0C940
analogous
#406CC9 #5940C9 #9E40C9
triadic
#5940C9 #C95940 #40C959
tetradic
#5940C9 #C9406C #B0C940 #40C99E
square
#5940C9 #C9406C #B0C940 #40C99E
split-complementary
#5940C9 #C99E40 #6CC940
monochromatic
#2E1F6F #422D9F #5940C9 #8270D6 #AC9FE4

Accessibility & contrast

On white

7.00
#5940C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5940C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940C9
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940C9#FFFFFF#000000##FFFFFF
##5940C91.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#23637F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5940c9;
/* rgb */ color: rgb(89, 64, 201);
/* oklch */ color: oklch(48.4% 0.201 284.4);
Tailwind
colors: {
  custom: {
    50: '#9377da',
    500: '#5940c9',
    950: '#000000',
  },
}
SCSS
$custom: #5940c9;
$custom-light: #9377da;
$custom-dark: #000000;
JSON
{
  "hex": "#5940c9",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 250.949,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48442,
    "c": 0.20096,
    "h": 284.4
  },
  "luminance": 0.10008
}

Semantic roles & 50–950 ramp

primary
#5940C9
secondary
#C5D094
accent
#DF49C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5940C9

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

Preview Lab → · Contrast checker → · Palette generator →

#5940C9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva