#4D2A9E#4D2A9E

#4D2A9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.175 H 290.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4D2A9E
RGBrgb(77, 42, 158)
HSLhsl(258, 58%, 39%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(51.3%, 73.4%, 0%, 38%)
CIE-LABlab(28.65, 44.05, -57.24)
CIE-LCHlch(28.65, 72.23, 307.58°)
OKLaboklab(40.44% 0.0601 -0.1644)
OKLCHoklch(40.44% 0.175 290.1)
XYZxyz(10.0583, 5.7019, 32.9117)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A9E #7B9E2A
analogous
#2A419E #4D2A9E #872A9E
triadic
#4D2A9E #9E4D2A #2A9E4D
tetradic
#4D2A9E #9E2A41 #7B9E2A #2A9E87
square
#4D2A9E #9E2A41 #7B9E2A #2A9E87
split-complementary
#4D2A9E #9E872A #419E2A
monochromatic
#1E103D #351D6E #4D2A9E #663ACB #8C6BD8

Accessibility & contrast

On white

9.81
#4D2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A9E
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A9E#FFFFFF#000000##FFFFFF
##4D2A9E1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#314961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2a9e;
/* rgb */ color: rgb(77, 42, 158);
/* oklch */ color: oklch(40.4% 0.175 290.1);
Tailwind
colors: {
  custom: {
    50: '#8767bc',
    500: '#4d2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a9e;
$custom-light: #8767bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a9e",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 258.103,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40443,
    "c": 0.17502,
    "h": 290.1
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#4D2A9E
secondary
#A3BE66
accent
#E147B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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