#4D2D8F#4D2D8F

#4D2D8F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.153 H 293.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4D2D8F
RGBrgb(77, 45, 143)
HSLhsl(260, 52%, 37%)
HSVhsv(260, 69%, 56%)
CMYKcmyk(46.2%, 68.5%, 0%, 43.9%)
CIE-LABlab(27.95, 38.10, -49.19)
CIE-LCHlch(27.95, 62.22, 307.75°)
OKLaboklab(39.54% 0.06 -0.1407)
OKLCHoklch(39.54% 0.153 293.1)
XYZxyz(8.9555, 5.4375, 26.5590)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D8F #6F8F2D
analogous
#2D3E8F #4D2D8F #7E2D8F
triadic
#4D2D8F #8F4D2D #2D8F4D
tetradic
#4D2D8F #8F2D3E #6F8F2D #2D8F7E
square
#4D2D8F #8F2D3E #6F8F2D #2D8F7E
split-complementary
#4D2D8F #8F7E2D #3E8F2D
monochromatic
#1B1032 #341E60 #4D2D8F #663CBE #8967CF

Accessibility & contrast

On white

10.06
#4D2D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D2D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D8F
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D8F#FFFFFF#000000##FFFFFF
##4D2D8F1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#3A455A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2d8f;
/* rgb */ color: rgb(77, 45, 143);
/* oklch */ color: oklch(39.5% 0.153 293.1);
Tailwind
colors: {
  custom: {
    50: '#8568b1',
    500: '#4d2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d8f;
$custom-light: #8568b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d8f",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 259.592,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39544,
    "c": 0.153,
    "h": 293.1
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#4D2D8F
secondary
#9AB662
accent
#DC4CAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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