#5B42CA#5B42CA

#5B42CA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.200 H 284.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5B42CA
RGBrgb(91, 66, 202)
HSLhsl(251, 56%, 53%)
HSVhsv(251, 67%, 79%)
CMYKcmyk(55%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.52, 46.26, -67.16)
CIE-LCHlch(38.52, 81.55, 304.56°)
OKLaboklab(48.99% 0.0507 -0.1931)
OKLCHoklch(48.99% 0.2 284.7)
XYZxyz(16.9200, 10.3839, 56.9784)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42CA #B1CA42
analogous
#426DCA #5B42CA #9F42CA
triadic
#5B42CA #CA5B42 #42CA5B
tetradic
#5B42CA #CA426D #B1CA42 #42CA9F
square
#5B42CA #CA426D #B1CA42 #42CA9F
split-complementary
#5B42CA #CA9F42 #6DCA42
monochromatic
#2F2072 #432DA2 #5B42CA #8472D7 #AEA2E5

Accessibility & contrast

On white

6.82
#5B42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5B42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42CA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42CA#FFFFFF#000000##FFFFFF
##5B42CA1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#286580
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b42ca;
/* rgb */ color: rgb(91, 66, 202);
/* oklch */ color: oklch(49.0% 0.200 284.7);
Tailwind
colors: {
  custom: {
    50: '#9478db',
    500: '#5b42ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b42ca;
$custom-light: #9478db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42ca",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 251.029,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48992,
    "c": 0.19964,
    "h": 284.7
  },
  "luminance": 0.10385
}

Semantic roles & 50–950 ramp

primary
#5B42CA
secondary
#C7D196
accent
#DF48C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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