#4E1773#4E1773

#4E1773 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.148 H 307.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4E1773
RGBrgb(78, 23, 115)
HSLhsl(276, 67%, 27%)
HSVhsv(276, 80%, 45%)
CMYKcmyk(32.2%, 80%, 0%, 54.9%)
CIE-LABlab(21.84, 41.82, -41.48)
CIE-LCHlch(21.84, 58.90, 315.23°)
OKLaboklab(34.51% 0.0898 -0.1179)
OKLCHoklch(34.51% 0.148 307.3)
XYZxyz(6.5421, 3.4704, 16.5415)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1773 #3C7317
analogous
#201773 #4E1773 #73176A
triadic
#4E1773 #734E17 #17734E
tetradic
#4E1773 #732017 #3C7317 #176A73
square
#4E1773 #732017 #3C7317 #176A73
split-complementary
#4E1773 #6A7317 #177320
monochromatic
#11051A #2B0D40 #4E1773 #7121A6 #922FD5

Accessibility & contrast

On white

12.40
#4E1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1773
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1773#FFFFFF#000000##FFFFFF
##4E17731.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#482E44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1773;
/* rgb */ color: rgb(78, 23, 115);
/* oklch */ color: oklch(34.5% 0.148 307.3);
Tailwind
colors: {
  custom: {
    50: '#845b9c',
    500: '#4e1773',
    950: '#000000',
  },
}
SCSS
$custom: #4e1773;
$custom-light: #845b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1773",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 275.87,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34505,
    "c": 0.14824,
    "h": 307.3
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#4E1773
secondary
#68A93D
accent
#EA3E83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1773

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

Preview Lab → · Contrast checker → · Palette generator →

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