#4D2E7E#4D2E7E

#4D2E7E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.130 H 297.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4D2E7E
RGBrgb(77, 46, 126)
HSLhsl(263, 47%, 34%)
HSVhsv(263, 63%, 49%)
CMYKcmyk(38.9%, 63.5%, 0%, 50.6%)
CIE-LABlab(26.84, 32.64, -40.38)
CIE-LCHlch(26.84, 51.92, 308.95°)
OKLaboklab(38.33% 0.0606 -0.1148)
OKLCHoklch(38.33% 0.13 297.8)
XYZxyz(7.8025, 5.0380, 20.2960)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E7E #5F7E2E
analogous
#2E377E #4D2E7E #752E7E
triadic
#4D2E7E #7E4D2E #2E7E4D
tetradic
#4D2E7E #7E2E37 #5F7E2E #2E7E75
square
#4D2E7E #7E2E37 #5F7E2E #2E7E75
split-complementary
#4D2E7E #7E752E #377E2E
monochromatic
#160D24 #321E51 #4D2E7E #683EAB #8861C5

Accessibility & contrast

On white

10.46
#4D2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E7E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E7E#FFFFFF#000000##FFFFFF
##4D2E7E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0B3F7C
Tritanopia (blue-blind)
#423F51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2e7e;
/* rgb */ color: rgb(77, 46, 126);
/* oklch */ color: oklch(38.3% 0.130 297.8);
Tailwind
colors: {
  custom: {
    50: '#8368a4',
    500: '#4d2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e7e;
$custom-light: #8368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e7e",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 263.25,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38331,
    "c": 0.12983,
    "h": 297.8
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#4D2E7E
secondary
#8DAC5C
accent
#D652A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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