#4D2C8B#4D2C8B

#4D2C8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.149 H 294.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4D2C8B
RGBrgb(77, 44, 139)
HSLhsl(261, 52%, 36%)
HSVhsv(261, 68%, 55%)
CMYKcmyk(44.6%, 68.3%, 0%, 45.5%)
CIE-LABlab(27.42, 37.51, -47.58)
CIE-LCHlch(27.42, 60.58, 308.25°)
OKLaboklab(39.06% 0.0617 -0.136)
OKLCHoklch(39.06% 0.149 294.4)
XYZxyz(8.6202, 5.2430, 24.9789)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C8B #6A8B2C
analogous
#2C3A8B #4D2C8B #7C2C8B
triadic
#4D2C8B #8B4D2C #2C8B4D
tetradic
#4D2C8B #8B2C3A #6A8B2C #2C8B7C
square
#4D2C8B #8B2C3A #6A8B2C #2C8B7C
split-complementary
#4D2C8B #8B7C2C #3A8B2C
monochromatic
#190F2E #331D5D #4D2C8B #673BB9 #8864CE

Accessibility & contrast

On white

10.25
#4D2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D2C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C8B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C8B#FFFFFF#000000##FFFFFF
##4D2C8B1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3C4357
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2c8b;
/* rgb */ color: rgb(77, 44, 139);
/* oklch */ color: oklch(39.1% 0.149 294.4);
Tailwind
colors: {
  custom: {
    50: '#8467ae',
    500: '#4d2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c8b;
$custom-light: #8467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c8b",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 260.842,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39061,
    "c": 0.14932,
    "h": 294.4
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#4D2C8B
secondary
#96B45F
accent
#DB4CAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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