#4D2CA7#4D2CA7

#4D2CA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.184 H 287.9°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4D2CA7
RGBrgb(77, 44, 167)
HSLhsl(256, 58%, 41%)
HSVhsv(256, 74%, 65%)
CMYKcmyk(53.9%, 73.7%, 0%, 34.5%)
CIE-LABlab(29.83, 45.62, -60.75)
CIE-LCHlch(29.83, 75.97, 306.90°)
OKLaboklab(41.53% 0.0563 -0.1747)
OKLCHoklch(41.53% 0.184 287.9)
XYZxyz(10.9342, 6.1686, 37.1662)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CA7 #86A72C
analogous
#2C48A7 #4D2CA7 #8B2CA7
triadic
#4D2CA7 #A74D2C #2CA74D
tetradic
#4D2CA7 #A72C48 #86A72C #2CA78B
square
#4D2CA7 #A72C48 #86A72C #2CA78B
split-complementary
#4D2CA7 #A78B2C #48A72C
monochromatic
#201246 #371F77 #4D2CA7 #6843CD #8F73DA

Accessibility & contrast

On white

9.40
#4D2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CA7
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CA7#FFFFFF#000000##FFFFFF
##4D2CA71.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#294D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ca7;
/* rgb */ color: rgb(77, 44, 167);
/* oklch */ color: oklch(41.5% 0.184 287.9);
Tailwind
colors: {
  custom: {
    50: '#8868c2',
    500: '#4d2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ca7;
$custom-light: #8868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ca7",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 256.098,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41533,
    "c": 0.18352,
    "h": 287.9
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#4D2CA7
secondary
#ABC26D
accent
#E246B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4D2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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