#4D1970#4D1970

#4D1970 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.142 H 307.7°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#4D1970
RGBrgb(77, 25, 112)
HSLhsl(276, 64%, 27%)
HSVhsv(276, 78%, 44%)
CMYKcmyk(31.2%, 77.7%, 0%, 56.1%)
CIE-LABlab(21.74, 40.03, -39.72)
CIE-LCHlch(21.74, 56.39, 315.23°)
OKLaboklab(34.33% 0.087 -0.1128)
OKLCHoklch(34.33% 0.142 307.7)
XYZxyz(6.3322, 3.4430, 15.6571)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1970 #3C7019
analogous
#221970 #4D1970 #701968
triadic
#4D1970 #704D19 #19704D
tetradic
#4D1970 #702219 #3C7019 #196870
square
#4D1970 #702219 #3C7019 #196870
split-complementary
#4D1970 #687019 #197022
monochromatic
#110619 #2B0E3E #4D1970 #6F24A2 #9132D1

Accessibility & contrast

On white

12.44
#4D1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1970
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1970#FFFFFF#000000##FFFFFF
##4D19701.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#472E43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1970;
/* rgb */ color: rgb(77, 25, 112);
/* oklch */ color: oklch(34.3% 0.142 307.7);
Tailwind
colors: {
  custom: {
    50: '#835c9a',
    500: '#4d1970',
    950: '#000000',
  },
}
SCSS
$custom: #4d1970;
$custom-light: #835c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1970",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 275.862,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.14246,
    "h": 307.7
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#4D1970
secondary
#68A540
accent
#E74184
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1970

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

Preview Lab → · Contrast checker → · Palette generator →

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