#4D2CA8#4D2CA8

#4D2CA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.185 H 287.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4D2CA8
RGBrgb(77, 44, 168)
HSLhsl(256, 58%, 42%)
HSVhsv(256, 74%, 66%)
CMYKcmyk(54.2%, 73.8%, 0%, 34.1%)
CIE-LABlab(29.93, 45.91, -61.20)
CIE-LCHlch(29.93, 76.51, 306.87°)
OKLaboklab(41.63% 0.0561 -0.176)
OKLCHoklch(41.63% 0.185 287.7)
XYZxyz(11.0270, 6.2057, 37.6550)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CA8 #87A82C
analogous
#2C49A8 #4D2CA8 #8B2CA8
triadic
#4D2CA8 #A84D2C #2CA84D
tetradic
#4D2CA8 #A82C49 #87A82C #2CA88B
square
#4D2CA8 #A82C49 #87A82C #2CA88B
split-complementary
#4D2CA8 #A88B2C #49A82C
monochromatic
#211347 #371F78 #4D2CA8 #6843CE #8F74DB

Accessibility & contrast

On white

9.37
#4D2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CA8
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CA8#FFFFFF#000000##FFFFFF
##4D2CA81.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#284E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ca8;
/* rgb */ color: rgb(77, 44, 168);
/* oklch */ color: oklch(41.6% 0.185 287.7);
Tailwind
colors: {
  custom: {
    50: '#8969c3',
    500: '#4d2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ca8;
$custom-light: #8969c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ca8",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 255.968,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41626,
    "c": 0.18471,
    "h": 287.7
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#4D2CA8
secondary
#ACC26E
accent
#E246B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4D2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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