#4D2E9D#4D2E9D

#4D2E9D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.169 H 289.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4D2E9D
RGBrgb(77, 46, 157)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 62%)
CMYKcmyk(51%, 70.7%, 0%, 38.4%)
CIE-LABlab(29.33, 41.63, -55.53)
CIE-LCHlch(29.33, 69.40, 306.86°)
OKLaboklab(40.9% 0.0567 -0.1593)
OKLCHoklch(40.9% 0.169 289.6)
XYZxyz(10.1216, 5.9657, 32.5099)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E9D #7E9D2E
analogous
#2E469D #4D2E9D #852E9D
triadic
#4D2E9D #9D4D2E #2E9D4D
tetradic
#4D2E9D #9D2E46 #7E9D2E #2E9D85
square
#4D2E9D #9D2E46 #7E9D2E #2E9D85
split-complementary
#4D2E9D #9D852E #469D2E
monochromatic
#1F123E #36206E #4D2E9D #6641C7 #8C70D5

Accessibility & contrast

On white

9.58
#4D2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E9D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E9D#FFFFFF#000000##FFFFFF
##4D2E9D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#314A62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2e9d;
/* rgb */ color: rgb(77, 46, 157);
/* oklch */ color: oklch(40.9% 0.169 289.6);
Tailwind
colors: {
  custom: {
    50: '#8769bb',
    500: '#4d2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e9d;
$custom-light: #8769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e9d",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 256.757,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40898,
    "c": 0.16912,
    "h": 289.6
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#4D2E9D
secondary
#A6BD6A
accent
#DE4AB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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