#4E1570#4E1570

#4E1570 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.147 H 308.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#4E1570
RGBrgb(78, 21, 112)
HSLhsl(278, 68%, 26%)
HSVhsv(278, 81%, 44%)
CMYKcmyk(30.4%, 81.2%, 0%, 56.1%)
CIE-LABlab(21.30, 41.92, -40.41)
CIE-LCHlch(21.30, 58.23, 316.05°)
OKLaboklab(34.05% 0.0924 -0.1148)
OKLCHoklch(34.05% 0.147 308.8)
XYZxyz(6.3341, 3.3260, 15.6344)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1570 #377015
analogous
#201570 #4E1570 #701564
triadic
#4E1570 #704E15 #15704E
tetradic
#4E1570 #702015 #377015 #156470
square
#4E1570 #702015 #377015 #156470
split-complementary
#4E1570 #647015 #157020
monochromatic
#12051A #2A0B3C #4E1570 #721FA4 #9629D7

Accessibility & contrast

On white

12.61
#4E1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1570
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1570#FFFFFF#000000##FFFFFF
##4E15701.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#492C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1570;
/* rgb */ color: rgb(78, 21, 112);
/* oklch */ color: oklch(34.1% 0.147 308.8);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4e1570',
    950: '#000000',
  },
}
SCSS
$custom: #4e1570;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1570",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 277.582,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34053,
    "c": 0.14735,
    "h": 308.8
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#4E1570
secondary
#63A63B
accent
#EB3D7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1570

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

Preview Lab → · Contrast checker → · Palette generator →

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