#4E2B71#4E2B71

#4E2B71 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 37.0% C 0.118 H 304.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#4E2B71
RGBrgb(78, 43, 113)
HSLhsl(270, 45%, 31%)
HSVhsv(270, 62%, 44%)
CMYKcmyk(31%, 61.9%, 0%, 55.7%)
CIE-LABlab(25.38, 31.07, -34.47)
CIE-LCHlch(25.38, 46.41, 312.03°)
OKLaboklab(37% 0.0664 -0.0974)
OKLCHoklch(37% 0.118 304.3)
XYZxyz(6.9857, 4.5397, 16.1278)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B71 #4E712B
analogous
#2B2B71 #4E2B71 #712B71
triadic
#4E2B71 #714E2B #2B714E
tetradic
#4E2B71 #712B2B #4E712B #2B7171
square
#4E2B71 #712B2B #4E712B #2B7171
split-complementary
#4E2B71 #71712B #2B712B
monochromatic
#110918 #2F1A45 #4E2B71 #6D3C9D #8B57BF

Accessibility & contrast

On white

11.01
#4E2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B71
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B71#FFFFFF#000000##FFFFFF
##4E2B711.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#483949
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2b71;
/* rgb */ color: rgb(78, 43, 113);
/* oklch */ color: oklch(37.0% 0.118 304.3);
Tailwind
colors: {
  custom: {
    50: '#82669a',
    500: '#4e2b71',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b71;
$custom-light: #82669a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b71",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 270,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36999,
    "c": 0.11794,
    "h": 304.3
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#4E2B71
secondary
#7CA355
accent
#D55394
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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