#4D2D99#4D2D99

#4D2D99 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.165 H 290.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4D2D99
RGBrgb(77, 45, 153)
HSLhsl(258, 55%, 39%)
HSVhsv(258, 71%, 60%)
CMYKcmyk(49.7%, 70.6%, 0%, 40%)
CIE-LABlab(28.78, 41.00, -53.97)
CIE-LCHlch(28.78, 67.78, 307.22°)
OKLaboklab(40.4% 0.0584 -0.1548)
OKLCHoklch(40.4% 0.165 290.7)
XYZxyz(9.7471, 5.7541, 30.7279)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D99 #79992D
analogous
#2D4399 #4D2D99 #832D99
triadic
#4D2D99 #994D2D #2D994D
tetradic
#4D2D99 #992D43 #79992D #2D9983
square
#4D2D99 #992D43 #79992D #2D9983
split-complementary
#4D2D99 #99832D #43992D
monochromatic
#1D113A #351F6A #4D2D99 #663DC6 #8B6CD4

Accessibility & contrast

On white

9.76
#4D2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D99
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D99#FFFFFF#000000##FFFFFF
##4D2D991.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#34485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2d99;
/* rgb */ color: rgb(77, 45, 153);
/* oklch */ color: oklch(40.4% 0.165 290.7);
Tailwind
colors: {
  custom: {
    50: '#8669b8',
    500: '#4d2d99',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d99;
$custom-light: #8669b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d99",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 257.778,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.16543,
    "h": 290.7
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#4D2D99
secondary
#A2BB67
accent
#DE4AB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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