#5942C8#5942C8

#5942C8 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.197 H 284.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5942C8
RGBrgb(89, 66, 200)
HSLhsl(250, 55%, 52%)
HSVhsv(250, 67%, 78%)
CMYKcmyk(55.5%, 67%, 0%, 21.6%)
CIE-LABlab(38.18, 45.33, -66.57)
CIE-LCHlch(38.18, 80.54, 304.25°)
OKLaboklab(48.65% 0.0483 -0.1914)
OKLCHoklch(48.65% 0.197 284.2)
XYZxyz(16.4902, 10.1894, 55.7302)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942C8 #B1C842
analogous
#426EC8 #5942C8 #9C42C8
triadic
#5942C8 #C85942 #42C859
tetradic
#5942C8 #C8426E #B1C842 #42C89C
square
#5942C8 #C8426E #B1C842 #42C89C
split-complementary
#5942C8 #C89C42 #6EC842
monochromatic
#2E206F #412E9F #5942C8 #8371D6 #ACA1E4

Accessibility & contrast

On white

6.91
#5942C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5942C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942C8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942C8#FFFFFF#000000##FFFFFF
##5942C81.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#24647F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5942c8;
/* rgb */ color: rgb(89, 66, 200);
/* oklch */ color: oklch(48.7% 0.197 284.2);
Tailwind
colors: {
  custom: {
    50: '#9378da',
    500: '#5942c8',
    950: '#000000',
  },
}
SCSS
$custom: #5942c8;
$custom-light: #9378da;
$custom-dark: #000000;
JSON
{
  "hex": "#5942c8",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 250.299,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.19741,
    "h": 284.2
  },
  "luminance": 0.1019
}

Semantic roles & 50–950 ramp

primary
#5942C8
secondary
#C6D096
accent
#DE4AC5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5942C8

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

Preview Lab → · Contrast checker → · Palette generator →

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