#5C39B2#5C39B2

#5C39B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.181 H 290.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5C39B2
RGBrgb(92, 57, 178)
HSLhsl(257, 51%, 46%)
HSVhsv(257, 68%, 70%)
CMYKcmyk(48.3%, 68%, 0%, 30.2%)
CIE-LABlab(34.83, 44.38, -59.09)
CIE-LCHlch(34.83, 73.91, 306.91°)
OKLaboklab(45.75% 0.0642 -0.1693)
OKLCHoklch(45.75% 0.181 290.7)
XYZxyz(13.9104, 8.4154, 43.0022)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C39B2 #8FB239
analogous
#3953B2 #5C39B2 #9839B2
triadic
#5C39B2 #B25C39 #39B25C
tetradic
#5C39B2 #B23953 #8FB239 #39B298
square
#5C39B2 #B23953 #8FB239 #39B298
split-complementary
#5C39B2 #B29839 #53B239
monochromatic
#2C1B55 #442A84 #5C39B2 #7D5DCB #A28BDA

Accessibility & contrast

On white

7.83
#5C39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5C39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C39B2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C39B2#FFFFFF#000000##FFFFFF
##5C39B21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#405771
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c39b2;
/* rgb */ color: rgb(92, 57, 178);
/* oklch */ color: oklch(45.8% 0.181 290.7);
Tailwind
colors: {
  custom: {
    50: '#9272ca',
    500: '#5c39b2',
    950: '#000000',
  },
}
SCSS
$custom: #5c39b2;
$custom-light: #9272ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c39b2",
  "rgb": {
    "r": 92,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 257.355,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45754,
    "c": 0.18109,
    "h": 290.7
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#5C39B2
secondary
#B1C482
accent
#DB4DB2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5C39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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