#4E3972#4E3972

#4E3972 is a dark, moderate violet. Relative luminance 0.058; OKLCH L 39.5% C 0.095 H 299.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4E3972
RGBrgb(78, 57, 114)
HSLhsl(262, 33%, 34%)
HSVhsv(262, 50%, 45%)
CMYKcmyk(31.6%, 50%, 0%, 55.3%)
CIE-LABlab(28.80, 22.69, -29.66)
CIE-LCHlch(28.80, 37.34, 307.42°)
OKLaboklab(39.55% 0.0462 -0.0834)
OKLCHoklch(39.55% 0.095 299)
XYZxyz(7.6416, 5.7608, 16.6257)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3972 #5D7239
analogous
#394072 #4E3972 #6A3972
triadic
#4E3972 #724E39 #39724E
tetradic
#4E3972 #723940 #5D7239 #39726A
square
#4E3972 #723940 #5D7239 #39726A
split-complementary
#4E3972 #726A39 #407239
monochromatic
#161020 #322549 #4E3972 #6A4D9B #896FB7

Accessibility & contrast

On white

9.76
#4E3972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E3972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3972
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3972#FFFFFF#000000##FFFFFF
##4E39721.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274474
Deuteranopia (green-blind)
#2C4371
Tritanopia (blue-blind)
#474350
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3972;
/* rgb */ color: rgb(78, 57, 114);
/* oklch */ color: oklch(39.5% 0.095 299.0);
Tailwind
colors: {
  custom: {
    50: '#81709b',
    500: '#4e3972',
    950: '#000000',
  },
}
SCSS
$custom: #4e3972;
$custom-light: #81709b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3972",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 114
  },
  "hsl": {
    "h": 262.105,
    "s": 33.333,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39548,
    "c": 0.0953,
    "h": 299
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

primary
#4E3972
secondary
#8BA067
accent
#C95EA2
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3972

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

Preview Lab → · Contrast checker → · Palette generator →

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