#4D2D7E#4D2D7E

#4D2D7E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.131 H 298.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4D2D7E
RGBrgb(77, 45, 126)
HSLhsl(264, 47%, 34%)
HSVhsv(264, 64%, 49%)
CMYKcmyk(38.9%, 64.3%, 0%, 50.6%)
CIE-LABlab(26.62, 33.23, -40.74)
CIE-LCHlch(26.62, 52.57, 309.20°)
OKLaboklab(38.17% 0.0619 -0.1159)
OKLCHoklch(38.17% 0.131 298.1)
XYZxyz(7.7639, 4.9608, 20.2831)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D7E #5E7E2D
analogous
#2D357E #4D2D7E #752D7E
triadic
#4D2D7E #7E4D2D #2D7E4D
tetradic
#4D2D7E #7E2D35 #5E7E2D #2D7E75
square
#4D2D7E #7E2D35 #5E7E2D #2D7E75
split-complementary
#4D2D7E #7E752D #357E2D
monochromatic
#160D24 #311D51 #4D2D7E #693DAB #885FC6

Accessibility & contrast

On white

10.54
#4D2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D7E
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D7E#FFFFFF#000000##FFFFFF
##4D2D7E1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#083E7C
Tritanopia (blue-blind)
#423F51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2d7e;
/* rgb */ color: rgb(77, 45, 126);
/* oklch */ color: oklch(38.2% 0.131 298.1);
Tailwind
colors: {
  custom: {
    50: '#8368a4',
    500: '#4d2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d7e;
$custom-light: #8368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d7e",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 263.704,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38171,
    "c": 0.13134,
    "h": 298.1
  },
  "luminance": 0.04961
}

Semantic roles & 50–950 ramp

primary
#4D2D7E
secondary
#8CAC5A
accent
#D751A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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