#4D1773#4D1773

#4D1773 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.148 H 306.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4D1773
RGBrgb(77, 23, 115)
HSLhsl(275, 67%, 27%)
HSVhsv(275, 80%, 45%)
CMYKcmyk(33%, 80%, 0%, 54.9%)
CIE-LABlab(21.68, 41.63, -41.74)
CIE-LCHlch(21.68, 58.95, 314.92°)
OKLaboklab(34.37% 0.0884 -0.1187)
OKLCHoklch(34.37% 0.148 306.7)
XYZxyz(6.4608, 3.4284, 16.5377)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1773 #3D7317
analogous
#1F1773 #4D1773 #73176B
triadic
#4D1773 #734D17 #17734D
tetradic
#4D1773 #731F17 #3D7317 #176B73
square
#4D1773 #731F17 #3D7317 #176B73
split-complementary
#4D1773 #6B7317 #17731F
monochromatic
#11051A #2B0D40 #4D1773 #6F21A6 #912FD5

Accessibility & contrast

On white

12.46
#4D1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1773
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1773#FFFFFF#000000##FFFFFF
##4D17731.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1773;
/* rgb */ color: rgb(77, 23, 115);
/* oklch */ color: oklch(34.4% 0.148 306.7);
Tailwind
colors: {
  custom: {
    50: '#835b9c',
    500: '#4d1773',
    950: '#000000',
  },
}
SCSS
$custom: #4d1773;
$custom-light: #835b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1773",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 275.217,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.14797,
    "h": 306.7
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#4D1773
secondary
#6AA93D
accent
#EA3E85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1773

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

Preview Lab → · Contrast checker → · Palette generator →

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