#4D1FA0#4D1FA0

#4D1FA0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.189 H 291.2°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4D1FA0
RGBrgb(77, 31, 160)
HSLhsl(261, 68%, 37%)
HSVhsv(261, 81%, 63%)
CMYKcmyk(51.9%, 80.6%, 0%, 37.3%)
CIE-LABlab(27.00, 49.84, -61.16)
CIE-LCHlch(27.00, 78.89, 309.18°)
OKLaboklab(39.35% 0.0683 -0.1757)
OKLCHoklch(39.35% 0.189 291.2)
XYZxyz(9.8939, 5.0954, 33.7131)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FA0 #72A01F
analogous
#1F32A0 #4D1FA0 #8D1FA0
triadic
#4D1FA0 #A04D1F #1FA04D
tetradic
#4D1FA0 #A01F32 #72A01F #1FA08D
square
#4D1FA0 #A01F32 #72A01F #1FA08D
split-complementary
#4D1FA0 #A08D1F #32A01F
monochromatic
#1C0B39 #34156D #4D1FA0 #6629D3 #8A5ADF

Accessibility & contrast

On white

10.40
#4D1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FA0
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FA0#FFFFFF#000000##FFFFFF
##4D1FA01.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#304560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d1fa0;
/* rgb */ color: rgb(77, 31, 160);
/* oklch */ color: oklch(39.3% 0.189 291.2);
Tailwind
colors: {
  custom: {
    50: '#8861bd',
    500: '#4d1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fa0;
$custom-light: #8861bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fa0",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 261.395,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39349,
    "c": 0.18857,
    "h": 291.2
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#4D1FA0
secondary
#9DC358
accent
#EA3DAD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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