#4D2C88#4D2C88

#4D2C88 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.146 H 295.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4D2C88
RGBrgb(77, 44, 136)
HSLhsl(262, 51%, 35%)
HSVhsv(262, 68%, 53%)
CMYKcmyk(43.4%, 67.6%, 0%, 46.7%)
CIE-LABlab(27.18, 36.65, -46.10)
CIE-LCHlch(27.18, 58.89, 308.48°)
OKLaboklab(38.81% 0.0621 -0.1316)
OKLCHoklch(38.81% 0.146 295.2)
XYZxyz(8.4040, 5.1565, 23.8403)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C88 #67882C
analogous
#2C3988 #4D2C88 #7B2C88
triadic
#4D2C88 #884D2C #2C884D
tetradic
#4D2C88 #882C39 #67882C #2C887B
square
#4D2C88 #882C39 #67882C #2C887B
split-complementary
#4D2C88 #887B2C #39882C
monochromatic
#190E2C #331D5A #4D2C88 #673BB6 #8862CC

Accessibility & contrast

On white

10.34
#4D2C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C88
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C88#FFFFFF#000000##FFFFFF
##4D2C881.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#3D4256
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2c88;
/* rgb */ color: rgb(77, 44, 136);
/* oklch */ color: oklch(38.8% 0.146 295.2);
Tailwind
colors: {
  custom: {
    50: '#8467ab',
    500: '#4d2c88',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c88;
$custom-light: #8467ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c88",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 261.522,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38813,
    "c": 0.14555,
    "h": 295.2
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#4D2C88
secondary
#94B35D
accent
#DB4DA8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2C88

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

Preview Lab → · Contrast checker → · Palette generator →

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