#4D1F83#4D1F83

#4D1F83 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.156 H 299.4°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4D1F83
RGBrgb(77, 31, 131)
HSLhsl(268, 62%, 32%)
HSVhsv(268, 76%, 51%)
CMYKcmyk(41.2%, 76.3%, 0%, 48.6%)
CIE-LABlab(24.31, 42.09, -47.64)
CIE-LCHlch(24.31, 63.57, 311.46°)
OKLaboklab(36.64% 0.0768 -0.1361)
OKLCHoklch(36.64% 0.156 299.4)
XYZxyz(7.6463, 4.1964, 21.8755)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F83 #55831F
analogous
#1F2383 #4D1F83 #7F1F83
triadic
#4D1F83 #834D1F #1F834D
tetradic
#4D1F83 #831F23 #55831F #1F837F
square
#4D1F83 #831F23 #55831F #1F837F
split-complementary
#4D1F83 #837F1F #23831F
monochromatic
#130820 #301352 #4D1F83 #6A2BB4 #8949D4

Accessibility & contrast

On white

11.42
#4D1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1F83
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F83#FFFFFF#000000##FFFFFF
##4D1F831.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#40394F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1f83;
/* rgb */ color: rgb(77, 31, 131);
/* oklch */ color: oklch(36.6% 0.156 299.4);
Tailwind
colors: {
  custom: {
    50: '#8460a8',
    500: '#4d1f83',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f83;
$custom-light: #8460a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f83",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 267.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.15626,
    "h": 299.4
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#4D1F83
secondary
#83B648
accent
#E5439A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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