#4D1D83#4D1D83

#4D1D83 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.159 H 299.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4D1D83
RGBrgb(77, 29, 131)
HSLhsl(268, 64%, 31%)
HSVhsv(268, 78%, 51%)
CMYKcmyk(41.2%, 77.9%, 0%, 48.6%)
CIE-LABlab(23.98, 43.02, -48.17)
CIE-LCHlch(23.98, 64.59, 311.77°)
OKLaboklab(36.41% 0.0787 -0.1376)
OKLCHoklch(36.41% 0.159 299.7)
XYZxyz(7.5956, 4.0951, 21.8586)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D83 #53831D
analogous
#1D2083 #4D1D83 #801D83
triadic
#4D1D83 #834D1D #1D834D
tetradic
#4D1D83 #831D20 #53831D #1D8380
square
#4D1D83 #831D20 #53831D #1D8380
split-complementary
#4D1D83 #83801D #20831D
monochromatic
#12071F #301251 #4D1D83 #6A28B5 #8945D6

Accessibility & contrast

On white

11.54
#4D1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D83
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D83#FFFFFF#000000##FFFFFF
##4D1D831.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#40384F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1d83;
/* rgb */ color: rgb(77, 29, 131);
/* oklch */ color: oklch(36.4% 0.159 299.7);
Tailwind
colors: {
  custom: {
    50: '#845fa8',
    500: '#4d1d83',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d83;
$custom-light: #845fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d83",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 268.235,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36411,
    "c": 0.15854,
    "h": 299.7
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#4D1D83
secondary
#81B646
accent
#E74199
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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