#4D2EAE#4D2EAE

#4D2EAE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.190 H 286.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4D2EAE
RGBrgb(77, 46, 174)
HSLhsl(255, 58%, 43%)
HSVhsv(255, 74%, 68%)
CMYKcmyk(55.7%, 73.6%, 0%, 31.8%)
CIE-LABlab(30.85, 46.62, -63.29)
CIE-LCHlch(30.85, 78.61, 306.38°)
OKLaboklab(42.45% 0.0531 -0.1821)
OKLCHoklch(42.45% 0.19 286.2)
XYZxyz(11.6753, 6.5871, 40.6924)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EAE #8FAE2E
analogous
#2E4FAE #4D2EAE #8D2EAE
triadic
#4D2EAE #AE4D2E #2EAE4D
tetradic
#4D2EAE #AE2E4F #8FAE2E #2EAE8D
square
#4D2EAE #AE2E4F #8FAE2E #2EAE8D
split-complementary
#4D2EAE #AE8D2E #4FAE2E
monochromatic
#22144D #38217E #4D2EAE #6A4ACF #927ADC

Accessibility & contrast

On white

9.06
#4D2EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4D2EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EAE
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EAE#FFFFFF#000000##FFFFFF
##4D2EAE1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#21516B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d2eae;
/* rgb */ color: rgb(77, 46, 174);
/* oklch */ color: oklch(42.4% 0.190 286.2);
Tailwind
colors: {
  custom: {
    50: '#896ac7',
    500: '#4d2eae',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eae;
$custom-light: #896ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eae",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 254.531,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42447,
    "c": 0.18968,
    "h": 286.2
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#4D2EAE
secondary
#B1C474
accent
#E146BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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