#4D1F84#4D1F84

#4D1F84 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.157 H 299.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4D1F84
RGBrgb(77, 31, 132)
HSLhsl(267, 62%, 32%)
HSVhsv(267, 77%, 52%)
CMYKcmyk(41.7%, 76.5%, 0%, 48.2%)
CIE-LABlab(24.40, 42.36, -48.12)
CIE-LCHlch(24.40, 64.11, 311.35°)
OKLaboklab(36.73% 0.0765 -0.1375)
OKLCHoklch(36.73% 0.157 299.1)
XYZxyz(7.7144, 4.2236, 22.2341)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F84 #56841F
analogous
#1F2384 #4D1F84 #801F84
triadic
#4D1F84 #844D1F #1F844D
tetradic
#4D1F84 #841F23 #56841F #1F8480
square
#4D1F84 #841F23 #56841F #1F8480
split-complementary
#4D1F84 #84801F #23841F
monochromatic
#130821 #301352 #4D1F84 #6A2BB6 #8949D4

Accessibility & contrast

On white

11.38
#4D1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F84
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F84#FFFFFF#000000##FFFFFF
##4D1F841.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#403950
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1f84;
/* rgb */ color: rgb(77, 31, 132);
/* oklch */ color: oklch(36.7% 0.157 299.1);
Tailwind
colors: {
  custom: {
    50: '#8460a9',
    500: '#4d1f84',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f84;
$custom-light: #8460a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f84",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 267.327,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36729,
    "c": 0.15738,
    "h": 299.1
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#4D1F84
secondary
#84B748
accent
#E5439B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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