#5942CA#5942CA

#5942CA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.200 H 283.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5942CA
RGBrgb(89, 66, 202)
HSLhsl(250, 56%, 53%)
HSVhsv(250, 67%, 79%)
CMYKcmyk(55.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.35, 45.94, -67.46)
CIE-LCHlch(38.35, 81.61, 304.25°)
OKLaboklab(48.82% 0.048 -0.194)
OKLCHoklch(48.82% 0.2 283.9)
XYZxyz(16.7255, 10.2835, 56.9693)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942CA #B3CA42
analogous
#426FCA #5942CA #9D42CA
triadic
#5942CA #CA5942 #42CA59
tetradic
#5942CA #CA426F #B3CA42 #42CA9D
square
#5942CA #CA426F #B3CA42 #42CA9D
split-complementary
#5942CA #CA9D42 #6FCA42
monochromatic
#2E2072 #412DA2 #5942CA #8372D7 #ADA2E5

Accessibility & contrast

On white

6.87
#5942CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5942CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942CA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942CA#FFFFFF#000000##FFFFFF
##5942CA1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#226580
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5942ca;
/* rgb */ color: rgb(89, 66, 202);
/* oklch */ color: oklch(48.8% 0.200 283.9);
Tailwind
colors: {
  custom: {
    50: '#9378db',
    500: '#5942ca',
    950: '#000000',
  },
}
SCSS
$custom: #5942ca;
$custom-light: #9378db;
$custom-dark: #000000;
JSON
{
  "hex": "#5942ca",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 250.147,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.19987,
    "h": 283.9
  },
  "luminance": 0.10285
}

Semantic roles & 50–950 ramp

primary
#5942CA
secondary
#C7D196
accent
#DF48C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5942CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5942CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva