#4D1F7B#4D1F7B

#4D1F7B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.147 H 302.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4D1F7B
RGBrgb(77, 31, 123)
HSLhsl(270, 60%, 30%)
HSVhsv(270, 75%, 48%)
CMYKcmyk(37.4%, 74.8%, 0%, 51.8%)
CIE-LABlab(23.63, 40.00, -43.69)
CIE-LCHlch(23.63, 59.23, 312.48°)
OKLaboklab(35.95% 0.0786 -0.1245)
OKLCHoklch(35.95% 0.147 302.3)
XYZxyz(7.1249, 3.9878, 19.1294)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F7B #4D7B1F
analogous
#1F1F7B #4D1F7B #7B1F7B
triadic
#4D1F7B #7B4D1F #1F7B4D
tetradic
#4D1F7B #7B1F1F #4D7B1F #1F7B7B
square
#4D1F7B #7B1F1F #4D7B1F #1F7B7B
split-complementary
#4D1F7B #7B7B1F #1F7B1F
monochromatic
#100619 #2E134A #4D1F7B #6C2BAC #8A44D0

Accessibility & contrast

On white

11.68
#4D1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F7B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F7B#FFFFFF#000000##FFFFFF
##4D1F7B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#43354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1f7b;
/* rgb */ color: rgb(77, 31, 123);
/* oklch */ color: oklch(35.9% 0.147 302.3);
Tailwind
colors: {
  custom: {
    50: '#835fa2',
    500: '#4d1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f7b;
$custom-light: #835fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f7b",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 270,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35949,
    "c": 0.1472,
    "h": 302.3
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#4D1F7B
secondary
#7BAE48
accent
#E34594
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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