#4D2E9F#4D2E9F

#4D2E9F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.172 H 289.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4D2E9F
RGBrgb(77, 46, 159)
HSLhsl(256, 55%, 40%)
HSVhsv(256, 71%, 62%)
CMYKcmyk(51.6%, 71.1%, 0%, 37.6%)
CIE-LABlab(29.50, 42.21, -56.46)
CIE-LCHlch(29.50, 70.50, 306.79°)
OKLaboklab(41.08% 0.0563 -0.1621)
OKLCHoklch(41.08% 0.172 289.1)
XYZxyz(10.2938, 6.0345, 33.4166)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E9F #809F2E
analogous
#2E489F #4D2E9F #852E9F
triadic
#4D2E9F #9F4D2E #2E9F4D
tetradic
#4D2E9F #9F2E48 #809F2E #2E9F85
square
#4D2E9F #9F2E48 #809F2E #2E9F85
split-complementary
#4D2E9F #9F852E #489F2E
monochromatic
#1F1340 #362070 #4D2E9F #6742C8 #8D71D6

Accessibility & contrast

On white

9.52
#4D2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E9F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E9F#FFFFFF#000000##FFFFFF
##4D2E9F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#304B63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2e9f;
/* rgb */ color: rgb(77, 46, 159);
/* oklch */ color: oklch(41.1% 0.172 289.1);
Tailwind
colors: {
  custom: {
    50: '#8769bc',
    500: '#4d2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e9f;
$custom-light: #8769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e9f",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 256.46,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41075,
    "c": 0.17158,
    "h": 289.1
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#4D2E9F
secondary
#A7BE6B
accent
#DE49B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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