#4E1970#4E1970

#4E1970 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.143 H 308.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4E1970
RGBrgb(78, 25, 112)
HSLhsl(277, 64%, 27%)
HSVhsv(277, 78%, 44%)
CMYKcmyk(30.4%, 77.7%, 0%, 56.1%)
CIE-LABlab(21.89, 40.24, -39.46)
CIE-LCHlch(21.89, 56.36, 315.56°)
OKLaboklab(34.47% 0.0885 -0.112)
OKLCHoklch(34.47% 0.143 308.3)
XYZxyz(6.4135, 3.4849, 15.6609)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1970 #3B7019
analogous
#231970 #4E1970 #701967
triadic
#4E1970 #704E19 #19704E
tetradic
#4E1970 #702319 #3B7019 #196770
square
#4E1970 #702319 #3B7019 #196770
split-complementary
#4E1970 #677019 #197023
monochromatic
#110619 #2B0E3E #4E1970 #7124A2 #9332D1

Accessibility & contrast

On white

12.37
#4E1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1970
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1970#FFFFFF#000000##FFFFFF
##4E19701.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1970;
/* rgb */ color: rgb(78, 25, 112);
/* oklch */ color: oklch(34.5% 0.143 308.3);
Tailwind
colors: {
  custom: {
    50: '#835c9a',
    500: '#4e1970',
    950: '#000000',
  },
}
SCSS
$custom: #4e1970;
$custom-light: #835c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1970",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 276.552,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.14276,
    "h": 308.3
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#4E1970
secondary
#67A540
accent
#E74182
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1970

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

Preview Lab → · Contrast checker → · Palette generator →

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