#4D1570#4D1570

#4D1570 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.147 H 308.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#4D1570
RGBrgb(77, 21, 112)
HSLhsl(277, 68%, 26%)
HSVhsv(277, 81%, 44%)
CMYKcmyk(31.2%, 81.2%, 0%, 56.1%)
CIE-LABlab(21.15, 41.73, -40.67)
CIE-LCHlch(21.15, 58.27, 315.73°)
OKLaboklab(33.91% 0.0909 -0.1156)
OKLCHoklch(33.91% 0.147 308.2)
XYZxyz(6.2528, 3.2841, 15.6306)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1570 #387015
analogous
#1F1570 #4D1570 #701565
triadic
#4D1570 #704D15 #15704D
tetradic
#4D1570 #701F15 #387015 #156570
square
#4D1570 #701F15 #387015 #156570
split-complementary
#4D1570 #657015 #15701F
monochromatic
#12051A #2A0B3C #4D1570 #701FA4 #9429D7

Accessibility & contrast

On white

12.68
#4D1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1570
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1570#FFFFFF#000000##FFFFFF
##4D15701.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#472C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d1570;
/* rgb */ color: rgb(77, 21, 112);
/* oklch */ color: oklch(33.9% 0.147 308.2);
Tailwind
colors: {
  custom: {
    50: '#835a9a',
    500: '#4d1570',
    950: '#000000',
  },
}
SCSS
$custom: #4d1570;
$custom-light: #835a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1570",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 276.923,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3391,
    "c": 0.14706,
    "h": 308.2
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#4D1570
secondary
#64A63B
accent
#EB3D80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1570

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

Preview Lab → · Contrast checker → · Palette generator →

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