#4D1F82#4D1F82

#4D1F82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.155 H 299.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4D1F82
RGBrgb(77, 31, 130)
HSLhsl(268, 61%, 32%)
HSVhsv(268, 76%, 51%)
CMYKcmyk(40.8%, 76.2%, 0%, 49%)
CIE-LABlab(24.22, 41.83, -47.15)
CIE-LCHlch(24.22, 63.03, 311.58°)
OKLaboklab(36.55% 0.077 -0.1347)
OKLCHoklch(36.55% 0.155 299.8)
XYZxyz(7.5788, 4.1694, 21.5202)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F82 #54821F
analogous
#1F2282 #4D1F82 #7F1F82
triadic
#4D1F82 #824D1F #1F824D
tetradic
#4D1F82 #821F22 #54821F #1F827F
square
#4D1F82 #821F22 #54821F #1F827F
split-complementary
#4D1F82 #827F1F #22821F
monochromatic
#12071F #301351 #4D1F82 #6A2BB3 #8948D3

Accessibility & contrast

On white

11.45
#4D1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F82
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F82#FFFFFF#000000##FFFFFF
##4D1F821.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#41384F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1f82;
/* rgb */ color: rgb(77, 31, 130);
/* oklch */ color: oklch(36.6% 0.155 299.8);
Tailwind
colors: {
  custom: {
    50: '#845fa7',
    500: '#4d1f82',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f82;
$custom-light: #845fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f82",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 267.879,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36553,
    "c": 0.15513,
    "h": 299.8
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#4D1F82
secondary
#82B548
accent
#E5439A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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