#4D2EA9#4D2EA9

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

Color values

HEX#4D2EA9
RGBrgb(77, 46, 169)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 73%, 66%)
CMYKcmyk(54.4%, 72.8%, 0%, 33.7%)
CIE-LABlab(30.39, 45.15, -61.04)
CIE-LCHlch(30.39, 75.93, 306.49°)
OKLaboklab(41.98% 0.0542 -0.1755)
OKLCHoklch(41.98% 0.184 287.2)
XYZxyz(11.1969, 6.3958, 38.1729)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA9 #8AA92E
analogous
#2E4DA9 #4D2EA9 #8B2EA9
triadic
#4D2EA9 #A94D2E #2EA94D
tetradic
#4D2EA9 #A92E4D #8AA92E #2EA98B
square
#4D2EA9 #A92E4D #8AA92E #2EA98B
split-complementary
#4D2EA9 #A98B2E #4DA92E
monochromatic
#211449 #372179 #4D2EA9 #6947CD #9077DA

Accessibility & contrast

On white

9.21
#4D2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EA9
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA9#FFFFFF#000000##FFFFFF
##4D2EA91.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#274F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2ea9;
/* rgb */ color: rgb(77, 46, 169);
/* oklch */ color: oklch(42.0% 0.184 287.2);
Tailwind
colors: {
  custom: {
    50: '#896ac4',
    500: '#4d2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea9;
$custom-light: #896ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea9",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 255.122,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.18371,
    "h": 287.2
  },
  "luminance": 0.06396
}

Semantic roles & 50–950 ramp

primary
#4D2EA9
secondary
#AEC271
accent
#E047BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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