#4E2D71#4E2D71

#4E2D71 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.3% C 0.115 H 303.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4E2D71
RGBrgb(78, 45, 113)
HSLhsl(269, 43%, 31%)
HSVhsv(269, 60%, 44%)
CMYKcmyk(31%, 60.2%, 0%, 55.7%)
CIE-LABlab(25.83, 29.89, -33.76)
CIE-LCHlch(25.83, 45.08, 311.52°)
OKLaboklab(37.33% 0.0637 -0.0953)
OKLCHoklch(37.33% 0.115 303.7)
XYZxyz(7.0602, 4.6887, 16.1527)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D71 #50712D
analogous
#2D2E71 #4E2D71 #702D71
triadic
#4E2D71 #714E2D #2D714E
tetradic
#4E2D71 #712D2E #50712D #2D7170
square
#4E2D71 #712D2E #50712D #2D7170
split-complementary
#4E2D71 #71702D #2E712D
monochromatic
#120A19 #301C45 #4E2D71 #6C3E9D #8B5BBE

Accessibility & contrast

On white

10.84
#4E2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D71
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D71#FFFFFF#000000##FFFFFF
##4E2D711.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C73
Deuteranopia (green-blind)
#1E3D6F
Tritanopia (blue-blind)
#483A4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2d71;
/* rgb */ color: rgb(78, 45, 113);
/* oklch */ color: oklch(37.3% 0.115 303.7);
Tailwind
colors: {
  custom: {
    50: '#82679a',
    500: '#4e2d71',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d71;
$custom-light: #82679a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d71",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 269.118,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37326,
    "c": 0.11464,
    "h": 303.7
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#4E2D71
secondary
#7EA357
accent
#D35596
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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