#4D2CA6#4D2CA6

#4D2CA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.182 H 288.1°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4D2CA6
RGBrgb(77, 44, 166)
HSLhsl(256, 58%, 41%)
HSVhsv(256, 73%, 65%)
CMYKcmyk(53.6%, 73.5%, 0%, 34.9%)
CIE-LABlab(29.74, 45.33, -60.30)
CIE-LCHlch(29.74, 75.43, 306.93°)
OKLaboklab(41.44% 0.0566 -0.1733)
OKLCHoklch(41.44% 0.182 288.1)
XYZxyz(10.8422, 6.1318, 36.6813)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CA6 #85A62C
analogous
#2C48A6 #4D2CA6 #8A2CA6
triadic
#4D2CA6 #A64D2C #2CA64D
tetradic
#4D2CA6 #A62C48 #85A62C #2CA68A
square
#4D2CA6 #A62C48 #85A62C #2CA68A
split-complementary
#4D2CA6 #A68A2C #48A62C
monochromatic
#201245 #371F76 #4D2CA6 #6842CD #8F73DA

Accessibility & contrast

On white

9.43
#4D2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2CA6
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CA6#FFFFFF#000000##FFFFFF
##4D2CA61.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#2A4D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ca6;
/* rgb */ color: rgb(77, 44, 166);
/* oklch */ color: oklch(41.4% 0.182 288.1);
Tailwind
colors: {
  custom: {
    50: '#8868c1',
    500: '#4d2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ca6;
$custom-light: #8868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ca6",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 256.23,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4144,
    "c": 0.18232,
    "h": 288.1
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#4D2CA6
secondary
#AAC16D
accent
#E146B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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