#5940CF#5940CF

#5940CF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.208 H 283.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5940CF
RGBrgb(89, 64, 207)
HSLhsl(250, 60%, 53%)
HSVhsv(250, 69%, 81%)
CMYKcmyk(57%, 69.1%, 0%, 18.8%)
CIE-LABlab(38.37, 48.54, -70.32)
CIE-LCHlch(38.37, 85.45, 304.62°)
OKLaboklab(48.97% 0.0489 -0.2024)
OKLCHoklch(48.97% 0.208 283.6)
XYZxyz(17.2122, 10.2946, 60.0994)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940CF #B6CF40
analogous
#406ECF #5940CF #A140CF
triadic
#5940CF #CF5940 #40CF59
tetradic
#5940CF #CF406E #B6CF40 #40CFA1
square
#5940CF #CF406E #B6CF40 #40CFA1
split-complementary
#5940CF #CFA140 #6ECF40
monochromatic
#2D1E77 #402AA8 #5940CF #8471DB #AEA2E8

Accessibility & contrast

On white

6.86
#5940CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5940CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940CF
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940CF#FFFFFF#000000##FFFFFF
##5940CF1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#196683
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5940cf;
/* rgb */ color: rgb(89, 64, 207);
/* oklch */ color: oklch(49.0% 0.208 283.6);
Tailwind
colors: {
  custom: {
    50: '#9477df',
    500: '#5940cf',
    950: '#000000',
  },
}
SCSS
$custom: #5940cf;
$custom-light: #9477df;
$custom-dark: #000000;
JSON
{
  "hex": "#5940cf",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 250.49,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48966,
    "c": 0.20824,
    "h": 283.6
  },
  "luminance": 0.10296
}

Semantic roles & 50–950 ramp

primary
#5940CF
secondary
#C9D497
accent
#E345C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5940CF

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

Preview Lab → · Contrast checker → · Palette generator →

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