#4D2A88#4D2A88

#4D2A88 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.148 H 295.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4D2A88
RGBrgb(77, 42, 136)
HSLhsl(262, 53%, 35%)
HSVhsv(262, 69%, 53%)
CMYKcmyk(43.4%, 69.1%, 0%, 46.7%)
CIE-LABlab(26.77, 37.77, -46.77)
CIE-LCHlch(26.77, 60.11, 308.92°)
OKLaboklab(38.52% 0.0643 -0.1336)
OKLCHoklch(38.52% 0.148 295.7)
XYZxyz(8.3313, 5.0111, 23.8161)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A88 #65882A
analogous
#2A3688 #4D2A88 #7C2A88
triadic
#4D2A88 #884D2A #2A884D
tetradic
#4D2A88 #882A36 #65882A #2A887C
square
#4D2A88 #882A36 #65882A #2A887C
split-complementary
#4D2A88 #887C2A #36882A
monochromatic
#180D2A #331C59 #4D2A88 #6738B7 #885FCE

Accessibility & contrast

On white

10.49
#4D2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A88
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A88#FFFFFF#000000##FFFFFF
##4D2A881.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#3D4155
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2a88;
/* rgb */ color: rgb(77, 42, 136);
/* oklch */ color: oklch(38.5% 0.148 295.7);
Tailwind
colors: {
  custom: {
    50: '#8466ab',
    500: '#4d2a88',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a88;
$custom-light: #8466ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a88",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 262.34,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38519,
    "c": 0.14829,
    "h": 295.7
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#4D2A88
secondary
#92B35B
accent
#DC4CA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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