#4E2A70#4E2A70

#4E2A70 is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.8% C 0.118 H 305.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#4E2A70
RGBrgb(78, 42, 112)
HSLhsl(271, 45%, 30%)
HSVhsv(271, 63%, 44%)
CMYKcmyk(30.4%, 62.5%, 0%, 56.1%)
CIE-LABlab(25.09, 31.39, -34.30)
CIE-LCHlch(25.09, 46.49, 312.47°)
OKLaboklab(36.77% 0.0678 -0.0969)
OKLCHoklch(36.77% 0.118 305)
XYZxyz(6.8938, 4.4455, 15.8210)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A70 #4C702A
analogous
#2B2A70 #4E2A70 #702A6F
triadic
#4E2A70 #704E2A #2A704E
tetradic
#4E2A70 #702B2A #4C702A #2A6F70
square
#4E2A70 #702B2A #4C702A #2A6F70
split-complementary
#4E2A70 #6F702A #2A702B
monochromatic
#100917 #2F1943 #4E2A70 #6D3B9D #8C55BF

Accessibility & contrast

On white

11.12
#4E2A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E2A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A70
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A70#FFFFFF#000000##FFFFFF
##4E2A701.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093A72
Deuteranopia (green-blind)
#1B3C6E
Tritanopia (blue-blind)
#483848
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2a70;
/* rgb */ color: rgb(78, 42, 112);
/* oklch */ color: oklch(36.8% 0.118 305.0);
Tailwind
colors: {
  custom: {
    50: '#826599',
    500: '#4e2a70',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a70;
$custom-light: #826599;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a70",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 270.857,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36766,
    "c": 0.11829,
    "h": 305
  },
  "luminance": 0.04445
}

Semantic roles & 50–950 ramp

primary
#4E2A70
secondary
#7AA254
accent
#D55392
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2A70

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

Preview Lab → · Contrast checker → · Palette generator →

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