#4E1F6F#4E1F6F

#4E1F6F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.134 H 307.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4E1F6F
RGBrgb(78, 31, 111)
HSLhsl(275, 56%, 28%)
HSVhsv(275, 72%, 44%)
CMYKcmyk(29.7%, 72.1%, 0%, 56.5%)
CIE-LABlab(22.82, 37.15, -37.31)
CIE-LCHlch(22.82, 52.66, 314.88°)
OKLaboklab(35.1% 0.0821 -0.1057)
OKLCHoklch(35.1% 0.134 307.8)
XYZxyz(6.5005, 3.7475, 15.4167)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F6F #406F1F
analogous
#261F6F #4E1F6F #6F1F68
triadic
#4E1F6F #6F4E1F #1F6F4E
tetradic
#4E1F6F #6F261F #406F1F #1F686F
square
#4E1F6F #6F261F #406F1F #1F686F
split-complementary
#4E1F6F #686F1F #1F6F26
monochromatic
#110718 #2C123F #4E1F6F #702C9F #903FC9

Accessibility & contrast

On white

12.00
#4E1F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F6F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F6F#FFFFFF#000000##FFFFFF
##4E1F6F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#0C376D
Tritanopia (blue-blind)
#493144
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1f6f;
/* rgb */ color: rgb(78, 31, 111);
/* oklch */ color: oklch(35.1% 0.134 307.8);
Tailwind
colors: {
  custom: {
    50: '#835f99',
    500: '#4e1f6f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f6f;
$custom-light: #835f99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f6f",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 275.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.351,
    "c": 0.13382,
    "h": 307.8
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#4E1F6F
secondary
#6DA347
accent
#E04887
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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