#4D2CAC#4D2CAC

#4D2CAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.189 H 286.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4D2CAC
RGBrgb(77, 44, 172)
HSLhsl(255, 59%, 42%)
HSVhsv(255, 74%, 67%)
CMYKcmyk(55.2%, 74.4%, 0%, 32.5%)
CIE-LABlab(30.30, 47.07, -63.00)
CIE-LCHlch(30.30, 78.64, 306.76°)
OKLaboklab(42% 0.0551 -0.1812)
OKLCHoklch(42% 0.189 286.9)
XYZxyz(11.4054, 6.3571, 39.6478)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CAC #8BAC2C
analogous
#2C4BAC #4D2CAC #8D2CAC
triadic
#4D2CAC #AC4D2C #2CAC4D
tetradic
#4D2CAC #AC2C4B #8BAC2C #2CAC8D
square
#4D2CAC #AC2C4B #8BAC2C #2CAC8D
split-complementary
#4D2CAC #AC8D2C #4BAC2C
monochromatic
#21134B #37207B #4D2CAC #6946D0 #9176DC

Accessibility & contrast

On white

9.24
#4D2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CAC
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CAC#FFFFFF#000000##FFFFFF
##4D2CAC1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#244F6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2cac;
/* rgb */ color: rgb(77, 44, 172);
/* oklch */ color: oklch(42.0% 0.189 286.9);
Tailwind
colors: {
  custom: {
    50: '#8969c6',
    500: '#4d2cac',
    950: '#000000',
  },
}
SCSS
$custom: #4d2cac;
$custom-light: #8969c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2cac",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 255.469,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42,
    "c": 0.18944,
    "h": 286.9
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#4D2CAC
secondary
#AEC470
accent
#E245BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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