#4E1F7C#4E1F7C

#4E1F7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.149 H 302.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4E1F7C
RGBrgb(78, 31, 124)
HSLhsl(270, 60%, 30%)
HSVhsv(270, 75%, 49%)
CMYKcmyk(37.1%, 75%, 0%, 51.4%)
CIE-LABlab(23.85, 40.46, -43.96)
CIE-LCHlch(23.85, 59.74, 312.63°)
OKLaboklab(36.16% 0.0799 -0.1252)
OKLCHoklch(36.16% 0.149 302.5)
XYZxyz(7.2691, 4.0549, 19.4646)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F7C #4D7C1F
analogous
#201F7C #4E1F7C #7C1F7B
triadic
#4E1F7C #7C4E1F #1F7C4E
tetradic
#4E1F7C #7C201F #4D7C1F #1F7B7C
square
#4E1F7C #7C201F #4D7C1F #1F7B7C
split-complementary
#4E1F7C #7B7C1F #1F7C20
monochromatic
#10071A #2F134B #4E1F7C #6D2BAD #8B45D0

Accessibility & contrast

On white

11.60
#4E1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F7C
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F7C#FFFFFF#000000##FFFFFF
##4E1F7C1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#44364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1f7c;
/* rgb */ color: rgb(78, 31, 124);
/* oklch */ color: oklch(36.2% 0.149 302.5);
Tailwind
colors: {
  custom: {
    50: '#845fa3',
    500: '#4e1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f7c;
$custom-light: #845fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f7c",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 270.323,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36162,
    "c": 0.14854,
    "h": 302.5
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#4E1F7C
secondary
#7BAF48
accent
#E34593
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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