#4E31C0#4E31C0

#4E31C0 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.208 H 283.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#4E31C0
RGBrgb(78, 49, 192)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 75%)
CMYKcmyk(59.4%, 74.5%, 0%, 24.7%)
CIE-LABlab(33.18, 50.50, -70.13)
CIE-LCHlch(33.18, 86.42, 305.76°)
OKLaboklab(44.63% 0.048 -0.2021)
OKLCHoklch(44.63% 0.208 283.4)
XYZxyz(13.7517, 7.6212, 50.6053)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31C0 #A3C031
analogous
#315BC0 #4E31C0 #9631C0
triadic
#4E31C0 #C04E31 #31C04E
tetradic
#4E31C0 #C0315B #A3C031 #31C096
square
#4E31C0 #C0315B #A3C031 #31C096
split-complementary
#4E31C0 #C09631 #5BC031
monochromatic
#26185E #3A258F #4E31C0 #7259D5 #9C8AE1

Accessibility & contrast

On white

8.32
#4E31C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E31C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31C0
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31C0#FFFFFF#000000##FFFFFF
##4E31C01.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e31c0;
/* rgb */ color: rgb(78, 49, 192);
/* oklch */ color: oklch(44.6% 0.208 283.4);
Tailwind
colors: {
  custom: {
    50: '#8d6dd4',
    500: '#4e31c0',
    950: '#000000',
  },
}
SCSS
$custom: #4e31c0;
$custom-light: #8d6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31c0",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 252.168,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4463,
    "c": 0.20772,
    "h": 283.4
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#4E31C0
secondary
#BCCB82
accent
#E345C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E31C0

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

Preview Lab → · Contrast checker → · Palette generator →

#4E31C0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva