#4E1F9E#4E1F9E

#4E1F9E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.186 H 292.2°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4E1F9E
RGBrgb(78, 31, 158)
HSLhsl(262, 67%, 37%)
HSVhsv(262, 80%, 62%)
CMYKcmyk(50.6%, 80.4%, 0%, 38%)
CIE-LABlab(26.93, 49.44, -60.06)
CIE-LCHlch(26.93, 77.79, 309.46°)
OKLaboklab(39.26% 0.0706 -0.1725)
OKLCHoklch(39.26% 0.186 292.2)
XYZxyz(9.8017, 5.0679, 32.8029)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F9E #6F9E1F
analogous
#1F2F9E #4E1F9E #8E1F9E
triadic
#4E1F9E #9E4E1F #1F9E4E
tetradic
#4E1F9E #9E1F2F #6F9E1F #1F9E8E
square
#4E1F9E #9E1F2F #6F9E1F #1F9E8E
split-complementary
#4E1F9E #9E8E1F #2F9E1F
monochromatic
#1B0B38 #35156B #4E1F9E #6729D1 #8A59DE

Accessibility & contrast

On white

10.43
#4E1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F9E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F9E#FFFFFF#000000##FFFFFF
##4E1F9E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#33445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e1f9e;
/* rgb */ color: rgb(78, 31, 158);
/* oklch */ color: oklch(39.3% 0.186 292.2);
Tailwind
colors: {
  custom: {
    50: '#8861bc',
    500: '#4e1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f9e;
$custom-light: #8861bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f9e",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 262.205,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39263,
    "c": 0.18638,
    "h": 292.2
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#4E1F9E
secondary
#9AC256
accent
#EA3EAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4E1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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