#4E32B7#4E32B7

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

Color values

HEX#4E32B7
RGBrgb(78, 50, 183)
HSLhsl(253, 57%, 46%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(57.4%, 72.7%, 0%, 28.2%)
CIE-LABlab(32.52, 47.32, -65.90)
CIE-LCHlch(32.52, 81.13, 305.68°)
OKLaboklab(43.91% 0.0493 -0.1897)
OKLCHoklch(43.91% 0.196 284.6)
XYZxyz(12.8271, 7.3190, 45.5274)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32B7 #9BB732
analogous
#3258B7 #4E32B7 #9132B7
triadic
#4E32B7 #B74E32 #32B74E
tetradic
#4E32B7 #B73258 #9BB732 #32B791
square
#4E32B7 #B73258 #9BB732 #32B791
split-complementary
#4E32B7 #B79132 #58B732
monochromatic
#251857 #3A2587 #4E32B7 #6F56D1 #9886DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E32B7#FFFFFF#000000##FFFFFF
##4E32B71.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)
#0050BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#175671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e32b7;
/* rgb */ color: rgb(78, 50, 183);
/* oklch */ color: oklch(43.9% 0.196 284.6);
Tailwind
colors: {
  custom: {
    50: '#8b6dce',
    500: '#4e32b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e32b7;
$custom-light: #8b6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32b7",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 252.632,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43908,
    "c": 0.19604,
    "h": 284.6
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#4E32B7
secondary
#B8C77D
accent
#E047C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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