#4E3170#4E3170

#4E3170 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 37.9% C 0.107 H 302.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4E3170
RGBrgb(78, 49, 112)
HSLhsl(268, 39%, 32%)
HSVhsv(268, 56%, 44%)
CMYKcmyk(30.4%, 56.3%, 0%, 56.1%)
CIE-LABlab(26.70, 27.18, -31.73)
CIE-LCHlch(26.70, 41.78, 310.58°)
OKLaboklab(37.94% 0.0579 -0.0894)
OKLCHoklch(37.94% 0.107 302.9)
XYZxyz(7.1642, 4.9862, 15.9111)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3170 #537031
analogous
#313470 #4E3170 #6E3170
triadic
#4E3170 #704E31 #31704E
tetradic
#4E3170 #703134 #537031 #31706E
square
#4E3170 #703134 #537031 #31706E
split-complementary
#4E3170 #706E31 #347031
monochromatic
#130C1B #301E45 #4E3170 #6C449B #8A61BA

Accessibility & contrast

On white

10.51
#4E3170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E3170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3170
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3170#FFFFFF#000000##FFFFFF
##4E31701.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3F72
Deuteranopia (green-blind)
#243F6E
Tritanopia (blue-blind)
#483D4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e3170;
/* rgb */ color: rgb(78, 49, 112);
/* oklch */ color: oklch(37.9% 0.107 302.9);
Tailwind
colors: {
  custom: {
    50: '#826a99',
    500: '#4e3170',
    950: '#000000',
  },
}
SCSS
$custom: #4e3170;
$custom-light: #826a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3170",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 267.619,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.10652,
    "h": 302.9
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#4E3170
secondary
#81A15C
accent
#CF5999
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E3170

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

Preview Lab → · Contrast checker → · Palette generator →

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