#4E31B3#4E31B3

#4E31B3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.192 H 285.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4E31B3
RGBrgb(78, 49, 179)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 73%, 70%)
CMYKcmyk(56.4%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.97, 46.66, -64.43)
CIE-LCHlch(31.97, 79.56, 305.91°)
OKLaboklab(43.4% 0.051 -0.1854)
OKLCHoklch(43.4% 0.192 285.4)
XYZxyz(12.3744, 7.0703, 43.3517)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B3 #96B331
analogous
#3155B3 #4E31B3 #8F31B3
triadic
#4E31B3 #B34E31 #31B34E
tetradic
#4E31B3 #B33155 #96B331 #31B38F
square
#4E31B3 #B33155 #96B331 #31B38F
split-complementary
#4E31B3 #B38F31 #55B331
monochromatic
#241753 #392483 #4E31B3 #6E52D0 #9682DD

Accessibility & contrast

On white

8.70
#4E31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B3
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B3#FFFFFF#000000##FFFFFF
##4E31B31.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#1E546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e31b3;
/* rgb */ color: rgb(78, 49, 179);
/* oklch */ color: oklch(43.4% 0.192 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a6ccb',
    500: '#4e31b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b3;
$custom-light: #8a6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b3",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 253.385,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43402,
    "c": 0.19233,
    "h": 285.4
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

primary
#4E31B3
secondary
#B5C67A
accent
#E048BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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