#4D1F9E#4D1F9E

#4D1F9E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.186 H 291.7°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4D1F9E
RGBrgb(77, 31, 158)
HSLhsl(262, 67%, 37%)
HSVhsv(262, 80%, 62%)
CMYKcmyk(51.3%, 80.4%, 0%, 38%)
CIE-LABlab(26.81, 49.30, -60.26)
CIE-LCHlch(26.81, 77.86, 309.29°)
OKLaboklab(39.15% 0.069 -0.1731)
OKLCHoklch(39.15% 0.186 291.7)
XYZxyz(9.7204, 5.0260, 32.7991)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F9E #709E1F
analogous
#1F319E #4D1F9E #8D1F9E
triadic
#4D1F9E #9E4D1F #1F9E4D
tetradic
#4D1F9E #9E1F31 #709E1F #1F9E8D
square
#4D1F9E #9E1F31 #709E1F #1F9E8D
split-complementary
#4D1F9E #9E8D1F #319E1F
monochromatic
#1B0B38 #34156B #4D1F9E #6629D1 #8959DE

Accessibility & contrast

On white

10.47
#4D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F9E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F9E#FFFFFF#000000##FFFFFF
##4D1F9E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#31445F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d1f9e;
/* rgb */ color: rgb(77, 31, 158);
/* oklch */ color: oklch(39.2% 0.186 291.7);
Tailwind
colors: {
  custom: {
    50: '#8861bc',
    500: '#4d1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f9e;
$custom-light: #8861bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f9e",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 261.732,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39153,
    "c": 0.18637,
    "h": 291.7
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#4D1F9E
secondary
#9BC256
accent
#EA3EAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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