#4E1F75#4E1F75

#4E1F75 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.141 H 305.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4E1F75
RGBrgb(78, 31, 117)
HSLhsl(273, 58%, 29%)
HSVhsv(273, 74%, 46%)
CMYKcmyk(33.3%, 73.5%, 0%, 54.1%)
CIE-LABlab(23.28, 38.66, -40.42)
CIE-LCHlch(23.28, 55.93, 313.73°)
OKLaboklab(35.58% 0.0812 -0.1148)
OKLCHoklch(35.58% 0.141 305.2)
XYZxyz(6.8420, 3.8841, 17.2154)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F75 #46751F
analogous
#231F75 #4E1F75 #751F71
triadic
#4E1F75 #754E1F #1F754E
tetradic
#4E1F75 #75231F #46751F #1F7175
square
#4E1F75 #75231F #46751F #1F7175
split-complementary
#4E1F75 #71751F #1F7523
monochromatic
#100618 #2E1245 #4E1F75 #6E2CA5 #8E42CD

Accessibility & contrast

On white

11.82
#4E1F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F75
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F75#FFFFFF#000000##FFFFFF
##4E1F751.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#003873
Tritanopia (blue-blind)
#473347
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1f75;
/* rgb */ color: rgb(78, 31, 117);
/* oklch */ color: oklch(35.6% 0.141 305.2);
Tailwind
colors: {
  custom: {
    50: '#835f9d',
    500: '#4e1f75',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f75;
$custom-light: #835f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f75",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 272.791,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3558,
    "c": 0.14062,
    "h": 305.2
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#4E1F75
secondary
#73A947
accent
#E1468D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F75

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

Preview Lab → · Contrast checker → · Palette generator →

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