#4E1B72#4E1B72

#4E1B72 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.142 H 307.2°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4E1B72
RGBrgb(78, 27, 114)
HSLhsl(275, 62%, 28%)
HSVhsv(275, 76%, 45%)
CMYKcmyk(31.6%, 76.3%, 0%, 55.3%)
CIE-LABlab(22.37, 39.82, -39.98)
CIE-LCHlch(22.37, 56.43, 314.89°)
OKLaboklab(34.85% 0.0861 -0.1135)
OKLCHoklch(34.85% 0.142 307.2)
XYZxyz(6.5704, 3.6186, 16.2686)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B72 #3F721B
analogous
#221B72 #4E1B72 #721B6B
triadic
#4E1B72 #724E1B #1B724E
tetradic
#4E1B72 #72221B #3F721B #1B6B72
square
#4E1B72 #72221B #3F721B #1B6B72
split-complementary
#4E1B72 #6B721B #1B7222
monochromatic
#110619 #2C0F41 #4E1B72 #7027A3 #9138D0

Accessibility & contrast

On white

12.18
#4E1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B72
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B72#FFFFFF#000000##FFFFFF
##4E1B721.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#483045
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1b72;
/* rgb */ color: rgb(78, 27, 114);
/* oklch */ color: oklch(34.9% 0.142 307.2);
Tailwind
colors: {
  custom: {
    50: '#835d9b',
    500: '#4e1b72',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b72;
$custom-light: #835d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b72",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 275.172,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34854,
    "c": 0.14245,
    "h": 307.2
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#4E1B72
secondary
#6CA742
accent
#E54386
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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