#4E1F70#4E1F70

#4E1F70 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.135 H 307.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4E1F70
RGBrgb(78, 31, 112)
HSLhsl(275, 57%, 28%)
HSVhsv(275, 72%, 44%)
CMYKcmyk(30.4%, 72.3%, 0%, 56.1%)
CIE-LABlab(22.89, 37.40, -37.83)
CIE-LCHlch(22.89, 53.20, 314.67°)
OKLaboklab(35.18% 0.0819 -0.1072)
OKLCHoklch(35.18% 0.135 307.4)
XYZxyz(6.5559, 3.7696, 15.7083)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F70 #41701F
analogous
#261F70 #4E1F70 #701F69
triadic
#4E1F70 #704E1F #1F704E
tetradic
#4E1F70 #70261F #41701F #1F6970
square
#4E1F70 #70261F #41701F #1F6970
split-complementary
#4E1F70 #69701F #1F7026
monochromatic
#110718 #2D1240 #4E1F70 #6F2CA0 #903FCA

Accessibility & contrast

On white

11.97
#4E1F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F70
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F70#FFFFFF#000000##FFFFFF
##4E1F701.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#09376E
Tritanopia (blue-blind)
#483145
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1f70;
/* rgb */ color: rgb(78, 31, 112);
/* oklch */ color: oklch(35.2% 0.135 307.4);
Tailwind
colors: {
  custom: {
    50: '#835f9a',
    500: '#4e1f70',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f70;
$custom-light: #835f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f70",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 274.815,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35179,
    "c": 0.13496,
    "h": 307.4
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#4E1F70
secondary
#6EA447
accent
#E04888
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F70

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

Preview Lab → · Contrast checker → · Palette generator →

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