#4D2F9F#4D2F9F

#4D2F9F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.170 H 289.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4D2F9F
RGBrgb(77, 47, 159)
HSLhsl(256, 54%, 40%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(51.6%, 70.4%, 0%, 37.6%)
CIE-LABlab(29.70, 41.67, -56.13)
CIE-LCHlch(29.70, 69.91, 306.58°)
OKLaboklab(41.22% 0.0553 -0.1611)
OKLCHoklch(41.22% 0.17 289)
XYZxyz(10.3333, 6.1136, 33.4297)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F9F #819F2F
analogous
#2F499F #4D2F9F #852F9F
triadic
#4D2F9F #9F4D2F #2F9F4D
tetradic
#4D2F9F #9F2F49 #819F2F #2F9F85
square
#4D2F9F #9F2F49 #819F2F #2F9F85
split-complementary
#4D2F9F #9F852F #499F2F
monochromatic
#1F1341 #362170 #4D2F9F #6744C8 #8D73D6

Accessibility & contrast

On white

9.45
#4D2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2F9F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F9F#FFFFFF#000000##FFFFFF
##4D2F9F1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2f9f;
/* rgb */ color: rgb(77, 47, 159);
/* oklch */ color: oklch(41.2% 0.170 289.0);
Tailwind
colors: {
  custom: {
    50: '#876abc',
    500: '#4d2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f9f;
$custom-light: #876abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f9f",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 256.071,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41217,
    "c": 0.17037,
    "h": 289
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#4D2F9F
secondary
#A8BD6D
accent
#DE4AB6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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