#4D2F9E#4D2F9E

#4D2F9E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.169 H 289.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4D2F9E
RGBrgb(77, 47, 158)
HSLhsl(256, 54%, 40%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(51.3%, 70.3%, 0%, 38%)
CIE-LABlab(29.61, 41.37, -55.67)
CIE-LCHlch(29.61, 69.36, 306.62°)
OKLaboklab(41.13% 0.0555 -0.1598)
OKLCHoklch(41.13% 0.169 289.2)
XYZxyz(10.2469, 6.0790, 32.9746)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F9E #809E2F
analogous
#2F499E #4D2F9E #842F9E
triadic
#4D2F9E #9E4D2F #2F9E4D
tetradic
#4D2F9E #9E2F49 #809E2F #2F9E84
square
#4D2F9E #9E2F49 #809E2F #2F9E84
split-complementary
#4D2F9E #9E842F #499E2F
monochromatic
#1F1340 #36216F #4D2F9E #6743C7 #8D72D5

Accessibility & contrast

On white

9.48
#4D2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F9E
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F9E#FFFFFF#000000##FFFFFF
##4D2F9E1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#304B63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2f9e;
/* rgb */ color: rgb(77, 47, 158);
/* oklch */ color: oklch(41.1% 0.169 289.2);
Tailwind
colors: {
  custom: {
    50: '#876abc',
    500: '#4d2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f9e;
$custom-light: #876abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f9e",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 256.216,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41128,
    "c": 0.16914,
    "h": 289.2
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

primary
#4D2F9E
secondary
#A7BD6C
accent
#DE4AB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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