#4D2C81#4D2C81

#4D2C81 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.137 H 297.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4D2C81
RGBrgb(77, 44, 129)
HSLhsl(263, 49%, 34%)
HSVhsv(263, 66%, 51%)
CMYKcmyk(40.3%, 65.9%, 0%, 49.4%)
CIE-LABlab(26.63, 34.66, -42.61)
CIE-LCHlch(26.63, 54.92, 309.12°)
OKLaboklab(38.25% 0.0629 -0.1214)
OKLCHoklch(38.25% 0.137 297.4)
XYZxyz(7.9227, 4.9640, 21.3054)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C81 #60812C
analogous
#2C3681 #4D2C81 #782C81
triadic
#4D2C81 #814D2C #2C814D
tetradic
#4D2C81 #812C36 #60812C #2C8178
square
#4D2C81 #812C36 #60812C #2C8178
split-complementary
#4D2C81 #81782C #36812C
monochromatic
#170D26 #321C53 #4D2C81 #683CAF #885FC8

Accessibility & contrast

On white

10.54
#4D2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C81
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C81#FFFFFF#000000##FFFFFF
##4D2C811.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#403F52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2c81;
/* rgb */ color: rgb(77, 44, 129);
/* oklch */ color: oklch(38.2% 0.137 297.4);
Tailwind
colors: {
  custom: {
    50: '#8367a6',
    500: '#4d2c81',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c81;
$custom-light: #8367a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c81",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 263.294,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38249,
    "c": 0.13669,
    "h": 297.4
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#4D2C81
secondary
#8EAF5A
accent
#D94FA3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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