#4D2EAC#4D2EAC

#4D2EAC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.187 H 286.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4D2EAC
RGBrgb(77, 46, 172)
HSLhsl(255, 58%, 43%)
HSVhsv(255, 73%, 67%)
CMYKcmyk(55.2%, 73.3%, 0%, 32.5%)
CIE-LABlab(30.66, 46.03, -62.39)
CIE-LCHlch(30.66, 77.54, 306.42°)
OKLaboklab(42.26% 0.0535 -0.1795)
OKLCHoklch(42.26% 0.187 286.6)
XYZxyz(11.4817, 6.5097, 39.6732)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EAC #8DAC2E
analogous
#2E4EAC #4D2EAC #8C2EAC
triadic
#4D2EAC #AC4D2E #2EAC4D
tetradic
#4D2EAC #AC2E4E #8DAC2E #2EAC8C
square
#4D2EAC #AC2E4E #8DAC2E #2EAC8C
split-complementary
#4D2EAC #AC8C2E #4EAC2E
monochromatic
#22144B #37217C #4D2EAC #6A49CE #9179DB

Accessibility & contrast

On white

9.12
#4D2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4D2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EAC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EAC#FFFFFF#000000##FFFFFF
##4D2EAC1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#24506A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2eac;
/* rgb */ color: rgb(77, 46, 172);
/* oklch */ color: oklch(42.3% 0.187 286.6);
Tailwind
colors: {
  custom: {
    50: '#896ac6',
    500: '#4d2eac',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eac;
$custom-light: #896ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eac",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 254.762,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.1873,
    "h": 286.6
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#4D2EAC
secondary
#AFC372
accent
#E147BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4D2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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