#4E31B9#4E31B9

#4E31B9 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.199 H 284.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4E31B9
RGBrgb(78, 49, 185)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 74%, 73%)
CMYKcmyk(57.8%, 73.5%, 0%, 27.5%)
CIE-LABlab(32.52, 48.44, -67.08)
CIE-LCHlch(32.52, 82.74, 305.83°)
OKLaboklab(43.96% 0.0497 -0.1932)
OKLCHoklch(43.96% 0.199 284.4)
XYZxyz(12.9945, 7.3183, 46.6174)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B9 #9CB931
analogous
#3158B9 #4E31B9 #9231B9
triadic
#4E31B9 #B94E31 #31B94E
tetradic
#4E31B9 #B93158 #9CB931 #31B992
square
#4E31B9 #B93158 #9CB931 #31B992
split-complementary
#4E31B9 #B99231 #58B931
monochromatic
#251758 #3A2489 #4E31B9 #7055D2 #9986DF

Accessibility & contrast

On white

8.52
#4E31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4E31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B9
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B9#FFFFFF#000000##FFFFFF
##4E31B91.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#135772
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e31b9;
/* rgb */ color: rgb(78, 49, 185);
/* oklch */ color: oklch(44.0% 0.199 284.4);
Tailwind
colors: {
  custom: {
    50: '#8b6ccf',
    500: '#4e31b9',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b9;
$custom-light: #8b6ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b9",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 252.794,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43964,
    "c": 0.19948,
    "h": 284.4
  },
  "luminance": 0.07319
}

Semantic roles & 50–950 ramp

primary
#4E31B9
secondary
#B8C87D
accent
#E146C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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