#4D1985#4D1985

#4D1985 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.165 H 299.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4D1985
RGBrgb(77, 25, 133)
HSLhsl(269, 68%, 31%)
HSVhsv(269, 81%, 52%)
CMYKcmyk(42.1%, 81.2%, 0%, 47.8%)
CIE-LABlab(23.56, 45.28, -50.12)
CIE-LCHlch(23.56, 67.54, 312.09°)
OKLaboklab(36.17% 0.0816 -0.1433)
OKLCHoklch(36.17% 0.165 299.6)
XYZxyz(7.6408, 3.9664, 22.5488)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1985 #518519
analogous
#191B85 #4D1985 #831985
triadic
#4D1985 #854D19 #19854D
tetradic
#4D1985 #85191B #518519 #198583
square
#4D1985 #85191B #518519 #198583
split-complementary
#4D1985 #858319 #1B8519
monochromatic
#11061E #2F0F51 #4D1985 #6B23B9 #893EDB

Accessibility & contrast

On white

11.71
#4D1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1985
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1985#FFFFFF#000000##FFFFFF
##4D19851.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#40374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1985;
/* rgb */ color: rgb(77, 25, 133);
/* oklch */ color: oklch(36.2% 0.165 299.6);
Tailwind
colors: {
  custom: {
    50: '#855da9',
    500: '#4d1985',
    950: '#000000',
  },
}
SCSS
$custom: #4d1985;
$custom-light: #855da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1985",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 268.889,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3617,
    "c": 0.16494,
    "h": 299.6
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#4D1985
secondary
#7FB941
accent
#EB3D97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1985

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

Preview Lab → · Contrast checker → · Palette generator →

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