#4D2A9B#4D2A9B

#4D2A9B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.171 H 290.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4D2A9B
RGBrgb(77, 42, 155)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 73%, 61%)
CMYKcmyk(50.3%, 72.9%, 0%, 39.2%)
CIE-LABlab(28.38, 43.19, -55.85)
CIE-LCHlch(28.38, 70.61, 307.71°)
OKLaboklab(40.17% 0.0608 -0.1603)
OKLCHoklch(40.17% 0.171 290.8)
XYZxyz(9.8032, 5.5999, 31.5683)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A9B #789B2A
analogous
#2A3F9B #4D2A9B #852A9B
triadic
#4D2A9B #9B4D2A #2A9B4D
tetradic
#4D2A9B #9B2A3F #789B2A #2A9B85
square
#4D2A9B #9B2A3F #789B2A #2A9B85
split-complementary
#4D2A9B #9B852A #3F9B2A
monochromatic
#1D103B #351D6B #4D2A9B #6639C9 #8B69D6

Accessibility & contrast

On white

9.91
#4D2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A9B
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A9B#FFFFFF#000000##FFFFFF
##4D2A9B1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#334860
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2a9b;
/* rgb */ color: rgb(77, 42, 155);
/* oklch */ color: oklch(40.2% 0.171 290.8);
Tailwind
colors: {
  custom: {
    50: '#8767b9',
    500: '#4d2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a9b;
$custom-light: #8767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a9b",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 258.584,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40171,
    "c": 0.17144,
    "h": 290.8
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#4D2A9B
secondary
#A1BD64
accent
#E147B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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