#4D2682#4D2682

#4D2682 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.146 H 298.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4D2682
RGBrgb(77, 38, 130)
HSLhsl(265, 55%, 33%)
HSVhsv(265, 71%, 51%)
CMYKcmyk(40.8%, 70.8%, 0%, 49%)
CIE-LABlab(25.49, 38.28, -45.09)
CIE-LCHlch(25.49, 59.15, 310.33°)
OKLaboklab(37.45% 0.0697 -0.1286)
OKLCHoklch(37.45% 0.146 298.4)
XYZxyz(7.7819, 4.5756, 21.5880)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2682 #5B8226
analogous
#262D82 #4D2682 #7B2682
triadic
#4D2682 #824D26 #26824D
tetradic
#4D2682 #82262D #5B8226 #26827B
square
#4D2682 #82262D #5B8226 #26827B
split-complementary
#4D2682 #827B26 #2D8226
monochromatic
#150A23 #311853 #4D2682 #6934B1 #8855CD

Accessibility & contrast

On white

10.96
#4D2682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D2682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2682
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2682#FFFFFF#000000##FFFFFF
##4D26821.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#403C51
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2682;
/* rgb */ color: rgb(77, 38, 130);
/* oklch */ color: oklch(37.5% 0.146 298.4);
Tailwind
colors: {
  custom: {
    50: '#8463a7',
    500: '#4d2682',
    950: '#000000',
  },
}
SCSS
$custom: #4d2682;
$custom-light: #8463a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2682",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 265.435,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37452,
    "c": 0.14631,
    "h": 298.4
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#4D2682
secondary
#89B252
accent
#DE4A9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D2682

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

Preview Lab → · Contrast checker → · Palette generator →

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