#4D2C82#4D2C82

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

Color values

HEX#4D2C82
RGBrgb(77, 44, 130)
HSLhsl(263, 49%, 34%)
HSVhsv(263, 66%, 51%)
CMYKcmyk(40.8%, 66.2%, 0%, 49%)
CIE-LABlab(26.71, 34.94, -43.11)
CIE-LCHlch(26.71, 55.49, 309.02°)
OKLaboklab(38.33% 0.0628 -0.1229)
OKLCHoklch(38.33% 0.138 297.1)
XYZxyz(7.9895, 4.9907, 21.6571)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C82 #61822C
analogous
#2C3682 #4D2C82 #782C82
triadic
#4D2C82 #824D2C #2C824D
tetradic
#4D2C82 #822C36 #61822C #2C8278
square
#4D2C82 #822C36 #61822C #2C8278
split-complementary
#4D2C82 #82782C #36822C
monochromatic
#170D27 #321D54 #4D2C82 #683BB0 #885FC9

Accessibility & contrast

On white

10.51
#4D2C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2C82
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C82#FFFFFF#000000##FFFFFF
##4D2C821.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#404053
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2c82;
/* rgb */ color: rgb(77, 44, 130);
/* oklch */ color: oklch(38.3% 0.138 297.1);
Tailwind
colors: {
  custom: {
    50: '#8367a7',
    500: '#4d2c82',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c82;
$custom-light: #8367a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c82",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 263.023,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38328,
    "c": 0.13796,
    "h": 297.1
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#4D2C82
secondary
#8FAF5B
accent
#D94FA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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