#4D2D8D#4D2D8D

#4D2D8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.150 H 293.6°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4D2D8D
RGBrgb(77, 45, 141)
HSLhsl(260, 52%, 36%)
HSVhsv(260, 68%, 55%)
CMYKcmyk(45.4%, 68.1%, 0%, 44.7%)
CIE-LABlab(27.78, 37.52, -48.22)
CIE-LCHlch(27.78, 61.10, 307.88°)
OKLaboklab(39.38% 0.0603 -0.1379)
OKLCHoklch(39.38% 0.15 293.6)
XYZxyz(8.8054, 5.3774, 25.7681)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D8D #6D8D2D
analogous
#2D3D8D #4D2D8D #7D2D8D
triadic
#4D2D8D #8D4D2D #2D8D4D
tetradic
#4D2D8D #8D2D3D #6D8D2D #2D8D7D
square
#4D2D8D #8D2D3D #6D8D2D #2D8D7D
split-complementary
#4D2D8D #8D7D2D #3D8D2D
monochromatic
#1A0F30 #341E5F #4D2D8D #663CBB #8966CE

Accessibility & contrast

On white

10.12
#4D2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4D2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D8D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D8D#FFFFFF#000000##FFFFFF
##4D2D8D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#3B4459
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2d8d;
/* rgb */ color: rgb(77, 45, 141);
/* oklch */ color: oklch(39.4% 0.150 293.6);
Tailwind
colors: {
  custom: {
    50: '#8568af',
    500: '#4d2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d8d;
$custom-light: #8568af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d8d",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 260,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.15049,
    "h": 293.6
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#4D2D8D
secondary
#99B561
accent
#DB4DAC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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