#4D1FA6#4D1FA6

#4D1FA6 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.195 H 289.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4D1FA6
RGBrgb(77, 31, 166)
HSLhsl(260, 69%, 39%)
HSVhsv(260, 81%, 65%)
CMYKcmyk(53.6%, 81.3%, 0%, 34.9%)
CIE-LABlab(27.60, 51.45, -63.82)
CIE-LCHlch(27.60, 81.97, 308.88°)
OKLaboklab(39.94% 0.0663 -0.1835)
OKLCHoklch(39.94% 0.195 289.9)
XYZxyz(10.4315, 5.3104, 36.5444)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FA6 #78A61F
analogous
#1F35A6 #4D1FA6 #901FA6
triadic
#4D1FA6 #A64D1F #1FA64D
tetradic
#4D1FA6 #A61F35 #78A61F #1FA690
square
#4D1FA6 #A61F35 #78A61F #1FA690
split-complementary
#4D1FA6 #A6901F #35A61F
monochromatic
#1D0C3F #351572 #4D1FA6 #662BD7 #8B5EE1

Accessibility & contrast

On white

10.18
#4D1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FA6
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FA6#FFFFFF#000000##FFFFFF
##4D1FA61.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#2B4763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d1fa6;
/* rgb */ color: rgb(77, 31, 166);
/* oklch */ color: oklch(39.9% 0.195 289.9);
Tailwind
colors: {
  custom: {
    50: '#8962c2',
    500: '#4d1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fa6;
$custom-light: #8962c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fa6",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 260.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39942,
    "c": 0.19514,
    "h": 289.9
  },
  "luminance": 0.05311
}

Semantic roles & 50–950 ramp

primary
#4D1FA6
secondary
#A1C55B
accent
#EB3CB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4D1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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