#4E1F93#4E1F93

#4E1F93 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.174 H 295.1°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4E1F93
RGBrgb(78, 31, 147)
HSLhsl(264, 65%, 35%)
HSVhsv(264, 79%, 58%)
CMYKcmyk(46.9%, 78.9%, 0%, 42.4%)
CIE-LABlab(25.88, 46.51, -55.03)
CIE-LCHlch(25.88, 72.05, 310.20°)
OKLaboklab(38.21% 0.074 -0.1578)
OKLCHoklch(38.21% 0.174 295.1)
XYZxyz(8.8969, 4.7060, 28.0377)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F93 #64931F
analogous
#1F2A93 #4E1F93 #881F93
triadic
#4E1F93 #934E1F #1F934E
tetradic
#4E1F93 #931F2A #64931F #1F9388
square
#4E1F93 #931F2A #64931F #1F9388
split-complementary
#4E1F93 #93881F #2A931F
monochromatic
#180A2E #331460 #4E1F93 #692AC6 #8952DA

Accessibility & contrast

On white

10.82
#4E1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F93
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F93#FFFFFF#000000##FFFFFF
##4E1F931.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003B91
Tritanopia (blue-blind)
#3A3F58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e1f93;
/* rgb */ color: rgb(78, 31, 147);
/* oklch */ color: oklch(38.2% 0.174 295.1);
Tailwind
colors: {
  custom: {
    50: '#8761b4',
    500: '#4e1f93',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f93;
$custom-light: #8761b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f93",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 264.31,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38215,
    "c": 0.17426,
    "h": 295.1
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#4E1F93
secondary
#91BE50
accent
#E840A4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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