#4E31BC#4E31BC

#4E31BC is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.203 H 284.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4E31BC
RGBrgb(78, 49, 188)
HSLhsl(253, 59%, 46%)
HSVhsv(253, 74%, 74%)
CMYKcmyk(58.5%, 73.9%, 0%, 26.3%)
CIE-LABlab(32.80, 49.32, -68.39)
CIE-LCHlch(32.80, 84.32, 305.80°)
OKLaboklab(44.25% 0.049 -0.197)
OKLCHoklch(44.25% 0.203 284)
XYZxyz(13.3145, 7.4463, 48.3029)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31BC #9FBC31
analogous
#315ABC #4E31BC #9431BC
triadic
#4E31BC #BC4E31 #31BC4E
tetradic
#4E31BC #BC315A #9FBC31 #31BC94
square
#4E31BC #BC315A #9FBC31 #31BC94
split-complementary
#4E31BC #BC9431 #5ABC31
monochromatic
#26185B #3A248B #4E31BC #7157D3 #9A88E0

Accessibility & contrast

On white

8.44
#4E31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4E31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31BC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31BC#FFFFFF#000000##FFFFFF
##4E31BC1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#0B5874
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e31bc;
/* rgb */ color: rgb(78, 49, 188);
/* oklch */ color: oklch(44.2% 0.203 284.0);
Tailwind
colors: {
  custom: {
    50: '#8c6cd1',
    500: '#4e31bc',
    950: '#000000',
  },
}
SCSS
$custom: #4e31bc;
$custom-light: #8c6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31bc",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 252.518,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44248,
    "c": 0.20303,
    "h": 284
  },
  "luminance": 0.07447
}

Semantic roles & 50–950 ramp

primary
#4E31BC
secondary
#BACA7F
accent
#E246C1
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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