#4D1E80#4D1E80

#4D1E80 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.154 H 300.6°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4D1E80
RGBrgb(77, 30, 128)
HSLhsl(269, 62%, 31%)
HSVhsv(269, 77%, 50%)
CMYKcmyk(39.8%, 76.6%, 0%, 49.8%)
CIE-LABlab(23.88, 41.78, -46.44)
CIE-LCHlch(23.88, 62.47, 311.98°)
OKLaboklab(36.26% 0.0785 -0.1326)
OKLCHoklch(36.26% 0.154 300.6)
XYZxyz(7.4202, 4.0648, 20.8115)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E80 #51801E
analogous
#1E2080 #4D1E80 #7E1E80
triadic
#4D1E80 #804D1E #1E804D
tetradic
#4D1E80 #801E20 #51801E #1E807E
square
#4D1E80 #801E20 #51801E #1E807E
split-complementary
#4D1E80 #807E1E #20801E
monochromatic
#11071D #2F124E #4D1E80 #6B2AB2 #8945D3

Accessibility & contrast

On white

11.58
#4D1E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D1E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E80
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E80#FFFFFF#000000##FFFFFF
##4D1E801.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#41374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1e80;
/* rgb */ color: rgb(77, 30, 128);
/* oklch */ color: oklch(36.3% 0.154 300.6);
Tailwind
colors: {
  custom: {
    50: '#845fa6',
    500: '#4d1e80',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e80;
$custom-light: #845fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e80",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 268.776,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3626,
    "c": 0.15406,
    "h": 300.6
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#4D1E80
secondary
#7FB347
accent
#E54397
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1E80

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

Preview Lab → · Contrast checker → · Palette generator →

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