#4D1F73#4D1F73

#4D1F73 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.138 H 305.4°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4D1F73
RGBrgb(77, 31, 115)
HSLhsl(273, 58%, 29%)
HSVhsv(273, 73%, 45%)
CMYKcmyk(33%, 73%, 0%, 54.9%)
CIE-LABlab(22.98, 37.94, -39.63)
CIE-LCHlch(22.98, 54.86, 313.75°)
OKLaboklab(35.29% 0.08 -0.1126)
OKLCHoklch(35.29% 0.138 305.4)
XYZxyz(6.6444, 3.7956, 16.5989)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F73 #45731F
analogous
#231F73 #4D1F73 #731F6F
triadic
#4D1F73 #734D1F #1F734D
tetradic
#4D1F73 #73231F #45731F #1F6F73
square
#4D1F73 #73231F #45731F #1F6F73
split-complementary
#4D1F73 #6F731F #1F7323
monochromatic
#100618 #2D1243 #4D1F73 #6D2CA3 #8D41CC

Accessibility & contrast

On white

11.94
#4D1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F73
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F73#FFFFFF#000000##FFFFFF
##4D1F731.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003771
Tritanopia (blue-blind)
#463246
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1f73;
/* rgb */ color: rgb(77, 31, 115);
/* oklch */ color: oklch(35.3% 0.138 305.4);
Tailwind
colors: {
  custom: {
    50: '#835f9c',
    500: '#4d1f73',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f73;
$custom-light: #835f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f73",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 272.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35286,
    "c": 0.13809,
    "h": 305.4
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#4D1F73
secondary
#72A747
accent
#E1478D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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