#4D1F94#4D1F94

#4D1F94 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.175 H 294.3°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4D1F94
RGBrgb(77, 31, 148)
HSLhsl(264, 65%, 35%)
HSVhsv(264, 79%, 58%)
CMYKcmyk(48%, 79.1%, 0%, 42%)
CIE-LABlab(25.85, 46.62, -55.71)
CIE-LCHlch(25.85, 72.64, 309.92°)
OKLaboklab(38.19% 0.0721 -0.1598)
OKLCHoklch(38.19% 0.175 294.3)
XYZxyz(8.8944, 4.6956, 28.4489)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F94 #66941F
analogous
#1F2B94 #4D1F94 #881F94
triadic
#4D1F94 #944D1F #1F944D
tetradic
#4D1F94 #941F2B #66941F #1F9488
square
#4D1F94 #941F2B #66941F #1F9488
split-complementary
#4D1F94 #94881F #2B941F
monochromatic
#180A2F #331461 #4D1F94 #672AC7 #8853DB

Accessibility & contrast

On white

10.83
#4D1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F94
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F94#FFFFFF#000000##FFFFFF
##4D1F941.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#384059
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1f94;
/* rgb */ color: rgb(77, 31, 148);
/* oklch */ color: oklch(38.2% 0.175 294.3);
Tailwind
colors: {
  custom: {
    50: '#8660b4',
    500: '#4d1f94',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f94;
$custom-light: #8660b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f94",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 263.59,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38194,
    "c": 0.17531,
    "h": 294.3
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#4D1F94
secondary
#93BE51
accent
#E83FA6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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