#4E32B8#4E32B8

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

Color values

HEX#4E32B8
RGBrgb(78, 50, 184)
HSLhsl(253, 57%, 46%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(57.6%, 72.8%, 0%, 27.8%)
CIE-LABlab(32.61, 47.62, -66.34)
CIE-LCHlch(32.61, 81.66, 305.67°)
OKLaboklab(44% 0.0491 -0.191)
OKLCHoklch(44% 0.197 284.4)
XYZxyz(12.9316, 7.3608, 46.0775)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32B8 #9CB832
analogous
#3259B8 #4E32B8 #9132B8
triadic
#4E32B8 #B84E32 #32B84E
tetradic
#4E32B8 #B83259 #9CB832 #32B891
square
#4E32B8 #B83259 #9CB832 #32B891
split-complementary
#4E32B8 #B89132 #59B832
monochromatic
#251858 #3A2588 #4E32B8 #7056D1 #9986DE

Accessibility & contrast

On white

8.49
#4E32B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E32B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32B8
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32B8#FFFFFF#000000##FFFFFF
##4E32B81.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#155772
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e32b8;
/* rgb */ color: rgb(78, 50, 184);
/* oklch */ color: oklch(44.0% 0.197 284.4);
Tailwind
colors: {
  custom: {
    50: '#8b6dce',
    500: '#4e32b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e32b8;
$custom-light: #8b6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32b8",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 252.537,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.19724,
    "h": 284.4
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#4E32B8
secondary
#B8C87E
accent
#E147C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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