#4D1F90#4D1F90

#4D1F90 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.171 H 295.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4D1F90
RGBrgb(77, 31, 144)
HSLhsl(264, 65%, 34%)
HSVhsv(264, 78%, 56%)
CMYKcmyk(46.5%, 78.5%, 0%, 43.5%)
CIE-LABlab(25.48, 45.55, -53.84)
CIE-LCHlch(25.48, 70.52, 310.23°)
OKLaboklab(37.82% 0.0733 -0.1543)
OKLCHoklch(37.82% 0.171 295.4)
XYZxyz(8.5832, 4.5711, 26.8102)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F90 #62901F
analogous
#1F2A90 #4D1F90 #861F90
triadic
#4D1F90 #904D1F #1F904D
tetradic
#4D1F90 #901F2A #62901F #1F9086
square
#4D1F90 #901F2A #62901F #1F9086
split-complementary
#4D1F90 #90861F #2A901F
monochromatic
#17092B #32145E #4D1F90 #682AC2 #8850D9

Accessibility & contrast

On white

10.97
#4D1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F90
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F90#FFFFFF#000000##FFFFFF
##4D1F901.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#3A3E57
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d1f90;
/* rgb */ color: rgb(77, 31, 144);
/* oklch */ color: oklch(37.8% 0.171 295.4);
Tailwind
colors: {
  custom: {
    50: '#8660b1',
    500: '#4d1f90',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f90;
$custom-light: #8660b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f90",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 264.425,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37819,
    "c": 0.17085,
    "h": 295.4
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#4D1F90
secondary
#90BC4E
accent
#E840A3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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