#4E1770#4E1770

#4E1770 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.145 H 308.6°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4E1770
RGBrgb(78, 23, 112)
HSLhsl(277, 66%, 26%)
HSVhsv(277, 79%, 44%)
CMYKcmyk(30.4%, 79.5%, 0%, 56.1%)
CIE-LABlab(21.59, 41.10, -39.95)
CIE-LCHlch(21.59, 57.32, 315.81°)
OKLaboklab(34.25% 0.0905 -0.1134)
OKLCHoklch(34.25% 0.145 308.6)
XYZxyz(6.3723, 3.4025, 15.6471)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1770 #397017
analogous
#221770 #4E1770 #701766
triadic
#4E1770 #704E17 #17704E
tetradic
#4E1770 #702217 #397017 #176670
square
#4E1770 #702217 #397017 #176670
split-complementary
#4E1770 #667017 #177022
monochromatic
#120519 #2B0D3D #4E1770 #7121A3 #942DD4

Accessibility & contrast

On white

12.50
#4E1770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E1770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1770
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1770#FFFFFF#000000##FFFFFF
##4E17701.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#492D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1770;
/* rgb */ color: rgb(78, 23, 112);
/* oklch */ color: oklch(34.3% 0.145 308.6);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4e1770',
    950: '#000000',
  },
}
SCSS
$custom: #4e1770;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1770",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 277.079,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.14512,
    "h": 308.6
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#4E1770
secondary
#65A63D
accent
#E93F80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1770

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

Preview Lab → · Contrast checker → · Palette generator →

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