#4E1B87#4E1B87

#4E1B87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.165 H 299.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4E1B87
RGBrgb(78, 27, 135)
HSLhsl(268, 67%, 32%)
HSVhsv(268, 80%, 53%)
CMYKcmyk(42.2%, 80%, 0%, 47.1%)
CIE-LABlab(24.17, 45.11, -50.37)
CIE-LCHlch(24.17, 67.62, 311.85°)
OKLaboklab(36.68% 0.0809 -0.1441)
OKLCHoklch(36.68% 0.165 299.3)
XYZxyz(7.9059, 4.1527, 23.3020)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B87 #54871B
analogous
#1B1E87 #4E1B87 #841B87
triadic
#4E1B87 #874E1B #1B874E
tetradic
#4E1B87 #871B1E #54871B #1B8784
square
#4E1B87 #871B1E #54871B #1B8784
split-complementary
#4E1B87 #87841B #1E871B
monochromatic
#130721 #311154 #4E1B87 #6B25BA #8A43D9

Accessibility & contrast

On white

11.47
#4E1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B87
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B87#FFFFFF#000000##FFFFFF
##4E1B871.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#403851
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1b87;
/* rgb */ color: rgb(78, 27, 135);
/* oklch */ color: oklch(36.7% 0.165 299.3);
Tailwind
colors: {
  custom: {
    50: '#865eab',
    500: '#4e1b87',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b87;
$custom-light: #865eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b87",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 268.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.16521,
    "h": 299.3
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#4E1B87
secondary
#82BA44
accent
#EA3E99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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