#5741C2#5741C2

#5741C2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.191 H 284.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5741C2
RGBrgb(87, 65, 194)
HSLhsl(250, 51%, 51%)
HSVhsv(250, 66%, 76%)
CMYKcmyk(55.2%, 66.5%, 0%, 23.9%)
CIE-LABlab(37.30, 43.75, -64.52)
CIE-LCHlch(37.30, 77.95, 304.14°)
OKLaboklab(47.82% 0.0473 -0.1854)
OKLCHoklch(47.82% 0.191 284.3)
XYZxyz(15.5554, 9.7010, 52.0813)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741C2 #ACC241
analogous
#416BC2 #5741C2 #9841C2
triadic
#5741C2 #C25741 #41C257
tetradic
#5741C2 #C2416B #ACC241 #41C298
square
#5741C2 #C2416B #ACC241 #41C298
split-complementary
#5741C2 #C29841 #6BC241
monochromatic
#2D2167 #413096 #5741C2 #806FD1 #A99EE0

Accessibility & contrast

On white

7.14
#5741C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5741C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741C2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741C2#FFFFFF#000000##FFFFFF
##5741C21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5741c2;
/* rgb */ color: rgb(87, 65, 194);
/* oklch */ color: oklch(47.8% 0.191 284.3);
Tailwind
colors: {
  custom: {
    50: '#9177d5',
    500: '#5741c2',
    950: '#000000',
  },
}
SCSS
$custom: #5741c2;
$custom-light: #9177d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5741c2",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 250.233,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4782,
    "c": 0.19137,
    "h": 284.3
  },
  "luminance": 0.09702
}

Semantic roles & 50–950 ramp

primary
#5741C2
secondary
#C2CC93
accent
#DB4DC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5741C2

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

Preview Lab → · Contrast checker → · Palette generator →

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