#4D2396#4D2396

#4D2396 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.173 H 293.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4D2396
RGBrgb(77, 35, 150)
HSLhsl(262, 62%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(48.7%, 76.7%, 0%, 41.2%)
CIE-LABlab(26.68, 45.31, -55.57)
CIE-LCHlch(26.68, 71.70, 309.19°)
OKLaboklab(38.83% 0.0682 -0.1594)
OKLCHoklch(38.83% 0.173 293.2)
XYZxyz(9.1651, 4.9816, 29.3269)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2396 #6C9623
analogous
#233396 #4D2396 #872396
triadic
#4D2396 #964D23 #23964D
tetradic
#4D2396 #962333 #6C9623 #239687
square
#4D2396 #962333 #6C9623 #239687
split-complementary
#4D2396 #968723 #339623
monochromatic
#1A0C33 #341764 #4D2396 #662FC8 #895BD9

Accessibility & contrast

On white

10.52
#4D2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2396
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2396#FFFFFF#000000##FFFFFF
##4D23961.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#36425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2396;
/* rgb */ color: rgb(77, 35, 150);
/* oklch */ color: oklch(38.8% 0.173 293.2);
Tailwind
colors: {
  custom: {
    50: '#8663b6',
    500: '#4d2396',
    950: '#000000',
  },
}
SCSS
$custom: #4d2396;
$custom-light: #8663b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2396",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 261.913,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38834,
    "c": 0.17341,
    "h": 293.2
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#4D2396
secondary
#98BD58
accent
#E543AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2396

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

Preview Lab → · Contrast checker → · Palette generator →

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