#4E1F71#4E1F71

#4E1F71 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.136 H 306.9°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4E1F71
RGBrgb(78, 31, 113)
HSLhsl(274, 57%, 28%)
HSVhsv(274, 73%, 44%)
CMYKcmyk(31%, 72.6%, 0%, 55.7%)
CIE-LABlab(22.97, 37.66, -38.35)
CIE-LCHlch(22.97, 53.75, 314.47°)
OKLaboklab(35.26% 0.0818 -0.1088)
OKLCHoklch(35.26% 0.136 306.9)
XYZxyz(6.6119, 3.7920, 16.0032)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F71 #42711F
analogous
#251F71 #4E1F71 #711F6B
triadic
#4E1F71 #714E1F #1F714E
tetradic
#4E1F71 #71251F #42711F #1F6B71
square
#4E1F71 #71251F #42711F #1F6B71
split-complementary
#4E1F71 #6B711F #1F7125
monochromatic
#110718 #2D1241 #4E1F71 #6F2CA1 #8F40CB

Accessibility & contrast

On white

11.94
#4E1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F71
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F71#FFFFFF#000000##FFFFFF
##4E1F711.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#07376F
Tritanopia (blue-blind)
#483145
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1f71;
/* rgb */ color: rgb(78, 31, 113);
/* oklch */ color: oklch(35.3% 0.136 306.9);
Tailwind
colors: {
  custom: {
    50: '#835f9a',
    500: '#4e1f71',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f71;
$custom-light: #835f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f71",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 274.39,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35258,
    "c": 0.13609,
    "h": 306.9
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#4E1F71
secondary
#6FA547
accent
#E04889
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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