#4D1F80#4D1F80

#4D1F80 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.153 H 300.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4D1F80
RGBrgb(77, 31, 128)
HSLhsl(268, 61%, 31%)
HSVhsv(268, 76%, 50%)
CMYKcmyk(39.8%, 75.8%, 0%, 49.8%)
CIE-LABlab(24.05, 41.30, -46.17)
CIE-LCHlch(24.05, 61.95, 311.82°)
OKLaboklab(36.38% 0.0775 -0.1318)
OKLCHoklch(36.38% 0.153 300.5)
XYZxyz(7.4459, 4.1162, 20.8201)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F80 #52801F
analogous
#1F2180 #4D1F80 #7D1F80
triadic
#4D1F80 #804D1F #1F804D
tetradic
#4D1F80 #801F21 #52801F #1F807D
square
#4D1F80 #801F21 #52801F #1F807D
split-complementary
#4D1F80 #807D1F #21801F
monochromatic
#12071D #2F134F #4D1F80 #6B2BB1 #8947D2

Accessibility & contrast

On white

11.52
#4D1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F80
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F80#FFFFFF#000000##FFFFFF
##4D1F801.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#41374E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1f80;
/* rgb */ color: rgb(77, 31, 128);
/* oklch */ color: oklch(36.4% 0.153 300.5);
Tailwind
colors: {
  custom: {
    50: '#845fa6',
    500: '#4d1f80',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f80;
$custom-light: #845fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f80",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 268.454,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36378,
    "c": 0.15286,
    "h": 300.5
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#4D1F80
secondary
#80B348
accent
#E44498
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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