#4E1F7A#4E1F7A

#4E1F7A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.146 H 303.3°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4E1F7A
RGBrgb(78, 31, 122)
HSLhsl(271, 59%, 30%)
HSVhsv(271, 75%, 48%)
CMYKcmyk(36.1%, 74.6%, 0%, 52.2%)
CIE-LABlab(23.69, 39.94, -42.95)
CIE-LCHlch(23.69, 58.66, 312.92°)
OKLaboklab(35.99% 0.0803 -0.1223)
OKLCHoklch(35.99% 0.146 303.3)
XYZxyz(7.1439, 4.0048, 18.8052)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F7A #4B7A1F
analogous
#211F7A #4E1F7A #7A1F78
triadic
#4E1F7A #7A4E1F #1F7A4E
tetradic
#4E1F7A #7A211F #4B7A1F #1F787A
square
#4E1F7A #7A211F #4B7A1F #1F787A
split-complementary
#4E1F7A #787A1F #1F7A21
monochromatic
#100618 #2F1349 #4E1F7A #6D2BAB #8C44CF

Accessibility & contrast

On white

11.66
#4E1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F7A
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F7A#FFFFFF#000000##FFFFFF
##4E1F7A1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#45354A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1f7a;
/* rgb */ color: rgb(78, 31, 122);
/* oklch */ color: oklch(36.0% 0.146 303.3);
Tailwind
colors: {
  custom: {
    50: '#845fa1',
    500: '#4e1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f7a;
$custom-light: #845fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f7a",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 270.989,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.35993,
    "c": 0.14628,
    "h": 303.3
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#4E1F7A
secondary
#79AD47
accent
#E34591
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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