#5C31D4#5C31D4

#5C31D4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.229 H 286.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5C31D4
RGBrgb(92, 49, 212)
HSLhsl(256, 65%, 51%)
HSVhsv(256, 77%, 83%)
CMYKcmyk(56.6%, 76.9%, 0%, 16.9%)
CIE-LABlab(36.41, 57.94, -76.41)
CIE-LCHlch(36.41, 95.90, 307.17°)
OKLaboklab(47.79% 0.0631 -0.2201)
OKLCHoklch(47.79% 0.229 286)
XYZxyz(17.3920, 9.2244, 63.1386)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31D4 #A9D431
analogous
#3157D4 #5C31D4 #AD31D4
triadic
#5C31D4 #D45C31 #31D45C
tetradic
#5C31D4 #D43157 #A9D431 #31D4AD
square
#5C31D4 #D43157 #A9D431 #31D4AD
split-complementary
#5C31D4 #D4AD31 #57D431
monochromatic
#301873 #4523A5 #5C31D4 #8464DF #AC96E9

Accessibility & contrast

On white

7.38
#5C31D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5C31D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31D4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31D4#FFFFFF#000000##FFFFFF
##5C31D41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#0051D1
Tritanopia (blue-blind)
#206082
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5c31d4;
/* rgb */ color: rgb(92, 49, 212);
/* oklch */ color: oklch(47.8% 0.229 286.0);
Tailwind
colors: {
  custom: {
    50: '#976fe3',
    500: '#5c31d4',
    950: '#000000',
  },
}
SCSS
$custom: #5c31d4;
$custom-light: #976fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31d4",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 255.828,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4779,
    "c": 0.22893,
    "h": 286
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

primary
#5C31D4
secondary
#C1D48C
accent
#E83FBC
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C31D4

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

Preview Lab → · Contrast checker → · Palette generator →

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