#4E1B75#4E1B75

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

Color values

HEX#4E1B75
RGBrgb(78, 27, 117)
HSLhsl(274, 63%, 28%)
HSVhsv(274, 77%, 46%)
CMYKcmyk(33.3%, 76.9%, 0%, 54.1%)
CIE-LABlab(22.61, 40.57, -41.51)
CIE-LCHlch(22.61, 58.04, 314.34°)
OKLaboklab(35.1% 0.0855 -0.118)
OKLCHoklch(35.1% 0.146 305.9)
XYZxyz(6.7440, 3.6880, 17.1827)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B75 #42751B
analogous
#211B75 #4E1B75 #751B6F
triadic
#4E1B75 #754E1B #1B754E
tetradic
#4E1B75 #75211B #42751B #1B6F75
square
#4E1B75 #75211B #42751B #1B6F75
split-complementary
#4E1B75 #6F751B #1B7521
monochromatic
#110619 #2D1043 #4E1B75 #6F26A7 #8F39D1

Accessibility & contrast

On white

12.09
#4E1B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B75
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B75#FFFFFF#000000##FFFFFF
##4E1B751.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#473146
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1b75;
/* rgb */ color: rgb(78, 27, 117);
/* oklch */ color: oklch(35.1% 0.146 305.9);
Tailwind
colors: {
  custom: {
    50: '#845d9d',
    500: '#4e1b75',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b75;
$custom-light: #845d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b75",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 274,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35103,
    "c": 0.14571,
    "h": 305.9
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#4E1B75
secondary
#6FA942
accent
#E64289
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B75

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

Preview Lab → · Contrast checker → · Palette generator →

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