#5941C2#5941C2

#5941C2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.191 H 285.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5941C2
RGBrgb(89, 65, 194)
HSLhsl(251, 51%, 51%)
HSVhsv(251, 66%, 76%)
CMYKcmyk(54.1%, 66.5%, 0%, 23.9%)
CIE-LABlab(37.48, 44.09, -64.22)
CIE-LCHlch(37.48, 77.90, 304.47°)
OKLaboklab(47.99% 0.05 -0.1845)
OKLCHoklch(47.99% 0.191 285.2)
XYZxyz(15.7448, 9.7986, 52.0902)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5941C2 #AAC241
analogous
#4169C2 #5941C2 #9941C2
triadic
#5941C2 #C25941 #41C259
tetradic
#5941C2 #C24169 #AAC241 #41C299
square
#5941C2 #C24169 #AAC241 #41C299
split-complementary
#5941C2 #C29941 #69C241
monochromatic
#2E2167 #433096 #5941C2 #816FD1 #AA9EE0

Accessibility & contrast

On white

7.10
#5941C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5941C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5941C2
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5941C2#FFFFFF#000000##FFFFFF
##5941C21.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#2C627C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5941c2;
/* rgb */ color: rgb(89, 65, 194);
/* oklch */ color: oklch(48.0% 0.191 285.2);
Tailwind
colors: {
  custom: {
    50: '#9277d5',
    500: '#5941c2',
    950: '#000000',
  },
}
SCSS
$custom: #5941c2;
$custom-light: #9277d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5941c2",
  "rgb": {
    "r": 89,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 251.163,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47992,
    "c": 0.19116,
    "h": 285.2
  },
  "luminance": 0.09799
}

Semantic roles & 50–950 ramp

primary
#5941C2
secondary
#C1CC93
accent
#DB4DC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5941C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5941C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva