#4D2997#4D2997

#4D2997 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.168 H 291.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4D2997
RGBrgb(77, 41, 151)
HSLhsl(260, 57%, 38%)
HSVhsv(260, 73%, 59%)
CMYKcmyk(49%, 72.8%, 0%, 40.8%)
CIE-LABlab(27.84, 42.57, -54.29)
CIE-LCHlch(27.84, 68.99, 308.10°)
OKLaboklab(39.68% 0.0626 -0.1557)
OKLCHoklch(39.68% 0.168 291.9)
XYZxyz(9.4379, 5.3977, 29.8167)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2997 #739729
analogous
#293C97 #4D2997 #842997
triadic
#4D2997 #974D29 #29974D
tetradic
#4D2997 #97293C #739729 #299784
square
#4D2997 #97293C #739729 #299784
split-complementary
#4D2997 #978429 #3C9729
monochromatic
#1C0F37 #341C67 #4D2997 #6636C7 #8A65D5

Accessibility & contrast

On white

10.10
#4D2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2997
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2997#FFFFFF#000000##FFFFFF
##4D29971.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#35465D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2997;
/* rgb */ color: rgb(77, 41, 151);
/* oklch */ color: oklch(39.7% 0.168 291.9);
Tailwind
colors: {
  custom: {
    50: '#8666b7',
    500: '#4d2997',
    950: '#000000',
  },
}
SCSS
$custom: #4d2997;
$custom-light: #8666b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2997",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 259.636,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.16781,
    "h": 291.9
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#4D2997
secondary
#9EBB61
accent
#E147AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2997

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

Preview Lab → · Contrast checker → · Palette generator →

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