#4D2D85#4D2D85

#4D2D85 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.140 H 295.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4D2D85
RGBrgb(77, 45, 133)
HSLhsl(262, 49%, 35%)
HSVhsv(262, 66%, 52%)
CMYKcmyk(42.1%, 66.2%, 0%, 47.8%)
CIE-LABlab(27.15, 35.22, -44.27)
CIE-LCHlch(27.15, 56.57, 308.50°)
OKLaboklab(38.72% 0.0613 -0.1263)
OKLCHoklch(38.72% 0.14 295.9)
XYZxyz(8.2315, 5.1478, 22.7457)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D85 #65852D
analogous
#2D3985 #4D2D85 #792D85
triadic
#4D2D85 #854D2D #2D854D
tetradic
#4D2D85 #852D39 #65852D #2D8579
square
#4D2D85 #852D39 #65852D #2D8579
split-complementary
#4D2D85 #85792D #39852D
monochromatic
#180E2A #331E57 #4D2D85 #673CB3 #8862CA

Accessibility & contrast

On white

10.35
#4D2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D85
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D85#FFFFFF#000000##FFFFFF
##4D2D851.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#3F4155
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2d85;
/* rgb */ color: rgb(77, 45, 133);
/* oklch */ color: oklch(38.7% 0.140 295.9);
Tailwind
colors: {
  custom: {
    50: '#8368a9',
    500: '#4d2d85',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d85;
$custom-light: #8368a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d85",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 261.818,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.14035,
    "h": 295.9
  },
  "luminance": 0.05148
}

Semantic roles & 50–950 ramp

primary
#4D2D85
secondary
#92B05D
accent
#D94FA7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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