#4E1B70#4E1B70

#4E1B70 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.140 H 308.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4E1B70
RGBrgb(78, 27, 112)
HSLhsl(276, 61%, 27%)
HSVhsv(276, 76%, 44%)
CMYKcmyk(30.4%, 75.9%, 0%, 56.1%)
CIE-LABlab(22.21, 39.34, -38.95)
CIE-LCHlch(22.21, 55.35, 315.29°)
OKLaboklab(34.69% 0.0864 -0.1105)
OKLCHoklch(34.69% 0.14 308)
XYZxyz(6.4578, 3.5735, 15.6756)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B70 #3D701B
analogous
#241B70 #4E1B70 #701B68
triadic
#4E1B70 #704E1B #1B704E
tetradic
#4E1B70 #70241B #3D701B #1B6870
square
#4E1B70 #70241B #3D701B #1B6870
split-complementary
#4E1B70 #68701B #1B7024
monochromatic
#110619 #2C0F3F #4E1B70 #7027A1 #9237CF

Accessibility & contrast

On white

12.25
#4E1B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B70
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B70#FFFFFF#000000##FFFFFF
##4E1B701.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#02366E
Tritanopia (blue-blind)
#492F44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1b70;
/* rgb */ color: rgb(78, 27, 112);
/* oklch */ color: oklch(34.7% 0.140 308.0);
Tailwind
colors: {
  custom: {
    50: '#835d9a',
    500: '#4e1b70',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b70;
$custom-light: #835d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b70",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 276,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.14027,
    "h": 308
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#4E1B70
secondary
#6AA542
accent
#E44484
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B70

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

Preview Lab → · Contrast checker → · Palette generator →

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