#5B42CF#5B42CF

#5B42CF is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.206 H 284.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5B42CF
RGBrgb(91, 66, 207)
HSLhsl(251, 59%, 54%)
HSVhsv(251, 68%, 81%)
CMYKcmyk(56%, 68.1%, 0%, 18.8%)
CIE-LABlab(38.94, 47.75, -69.38)
CIE-LCHlch(38.94, 84.22, 304.54°)
OKLaboklab(49.42% 0.05 -0.1996)
OKLCHoklch(49.42% 0.206 284.1)
XYZxyz(17.5216, 10.6245, 60.1468)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42CF #B6CF42
analogous
#426FCF #5B42CF #A142CF
triadic
#5B42CF #CF5B42 #42CF5B
tetradic
#5B42CF #CF426F #B6CF42 #42CFA1
square
#5B42CF #CF426F #B6CF42 #42CFA1
split-complementary
#5B42CF #CFA142 #6FCF42
monochromatic
#2E1F78 #412BA9 #5B42CF #8573DB #B0A4E8

Accessibility & contrast

On white

6.72
#5B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5B42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42CF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42CF#FFFFFF#000000##FFFFFF
##5B42CF1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#226783
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b42cf;
/* rgb */ color: rgb(91, 66, 207);
/* oklch */ color: oklch(49.4% 0.206 284.1);
Tailwind
colors: {
  custom: {
    50: '#9578df',
    500: '#5b42cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b42cf;
$custom-light: #9578df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42cf",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 250.638,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49421,
    "c": 0.20574,
    "h": 284.1
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

primary
#5B42CF
secondary
#CAD598
accent
#E345C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B42CF

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

Preview Lab → · Contrast checker → · Palette generator →

#5B42CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva