#4E3271#4E3271

#4E3271 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.2% C 0.106 H 302.2°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4E3271
RGBrgb(78, 50, 113)
HSLhsl(267, 39%, 32%)
HSVhsv(267, 56%, 44%)
CMYKcmyk(31%, 55.8%, 0%, 55.7%)
CIE-LABlab(27.00, 26.83, -31.89)
CIE-LCHlch(27.00, 41.67, 310.08°)
OKLaboklab(38.19% 0.0565 -0.0899)
OKLCHoklch(38.19% 0.106 302.2)
XYZxyz(7.2624, 5.0932, 16.2201)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3271 #557132
analogous
#323671 #4E3271 #6E3271
triadic
#4E3271 #714E32 #32714E
tetradic
#4E3271 #713236 #557132 #32716E
square
#4E3271 #713236 #557132 #32716E
split-complementary
#4E3271 #716E32 #367132
monochromatic
#130C1C #311F47 #4E3271 #6B459B #8A63BA

Accessibility & contrast

On white

10.40
#4E3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3271
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3271#FFFFFF#000000##FFFFFF
##4E32711.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F73
Deuteranopia (green-blind)
#24406F
Tritanopia (blue-blind)
#473E4C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e3271;
/* rgb */ color: rgb(78, 50, 113);
/* oklch */ color: oklch(38.2% 0.106 302.2);
Tailwind
colors: {
  custom: {
    50: '#826b9a',
    500: '#4e3271',
    950: '#000000',
  },
}
SCSS
$custom: #4e3271;
$custom-light: #826b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3271",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 266.667,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.10615,
    "h": 302.2
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#4E3271
secondary
#83A25D
accent
#CF599A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E3271

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

Preview Lab → · Contrast checker → · Palette generator →

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