#4D1975#4D1975

#4D1975 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.148 H 305.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4D1975
RGBrgb(77, 25, 117)
HSLhsl(274, 65%, 28%)
HSVhsv(274, 79%, 46%)
CMYKcmyk(34.2%, 78.6%, 0%, 54.1%)
CIE-LABlab(22.15, 41.26, -42.26)
CIE-LCHlch(22.15, 59.06, 314.31°)
OKLaboklab(34.75% 0.086 -0.1203)
OKLCHoklch(34.75% 0.148 305.6)
XYZxyz(6.6184, 3.5574, 17.1642)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1975 #417519
analogous
#1F1975 #4D1975 #75196F
triadic
#4D1975 #754D19 #19754D
tetradic
#4D1975 #751F19 #417519 #196F75
square
#4D1975 #751F19 #417519 #196F75
split-complementary
#4D1975 #6F7519 #19751F
monochromatic
#110519 #2C0E43 #4D1975 #6E24A7 #8F35D4

Accessibility & contrast

On white

12.27
#4D1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D1975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1975
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1975#FFFFFF#000000##FFFFFF
##4D19751.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#463046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1975;
/* rgb */ color: rgb(77, 25, 117);
/* oklch */ color: oklch(34.7% 0.148 305.6);
Tailwind
colors: {
  custom: {
    50: '#835c9d',
    500: '#4d1975',
    950: '#000000',
  },
}
SCSS
$custom: #4d1975;
$custom-light: #835c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1975",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 273.913,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.14782,
    "h": 305.6
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#4D1975
secondary
#6EAA40
accent
#E84089
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1975

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

Preview Lab → · Contrast checker → · Palette generator →

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