#5C39B7#5C39B7

#5C39B7 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.187 H 289.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5C39B7
RGBrgb(92, 57, 183)
HSLhsl(257, 53%, 47%)
HSVhsv(257, 69%, 72%)
CMYKcmyk(49.7%, 68.9%, 0%, 28.2%)
CIE-LABlab(35.24, 45.81, -61.39)
CIE-LCHlch(35.24, 76.60, 306.73°)
OKLaboklab(46.17% 0.0634 -0.1761)
OKLCHoklch(46.17% 0.187 289.8)
XYZxyz(14.4215, 8.6199, 45.6945)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C39B7 #94B739
analogous
#3955B7 #5C39B7 #9B39B7
triadic
#5C39B7 #B75C39 #39B75C
tetradic
#5C39B7 #B73955 #94B739 #39B79B
square
#5C39B7 #B73955 #94B739 #39B79B
split-complementary
#5C39B7 #B79B39 #55B739
monochromatic
#2D1C5A #452A88 #5C39B7 #7E60CD #A48EDC

Accessibility & contrast

On white

7.71
#5C39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5C39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C39B7
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C39B7#FFFFFF#000000##FFFFFF
##5C39B71.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#3D5973
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5c39b7;
/* rgb */ color: rgb(92, 57, 183);
/* oklch */ color: oklch(46.2% 0.187 289.8);
Tailwind
colors: {
  custom: {
    50: '#9272ce',
    500: '#5c39b7',
    950: '#000000',
  },
}
SCSS
$custom: #5c39b7;
$custom-light: #9272ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c39b7",
  "rgb": {
    "r": 92,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 256.667,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46174,
    "c": 0.18714,
    "h": 289.8
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#5C39B7
secondary
#B4C785
accent
#DC4CB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5C39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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