#4D299D#4D299D

#4D299D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.175 H 290.5°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4D299D
RGBrgb(77, 41, 157)
HSLhsl(259, 59%, 39%)
HSVhsv(259, 74%, 62%)
CMYKcmyk(51%, 73.9%, 0%, 38.4%)
CIE-LABlab(28.37, 44.28, -57.08)
CIE-LCHlch(28.37, 72.25, 307.80°)
OKLaboklab(40.22% 0.0612 -0.1639)
OKLCHoklch(40.22% 0.175 290.5)
XYZxyz(9.9376, 5.5976, 32.4486)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D299D #799D29
analogous
#293F9D #4D299D #87299D
triadic
#4D299D #9D4D29 #299D4D
tetradic
#4D299D #9D293F #799D29 #299D87
square
#4D299D #9D293F #799D29 #299D87
split-complementary
#4D299D #9D8729 #3F9D29
monochromatic
#1D103C #351C6C #4D299D #6638CB #8B69D8

Accessibility & contrast

On white

9.91
#4D299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D299D
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D299D#FFFFFF#000000##FFFFFF
##4D299D1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#314860
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d299d;
/* rgb */ color: rgb(77, 41, 157);
/* oklch */ color: oklch(40.2% 0.175 290.5);
Tailwind
colors: {
  custom: {
    50: '#8766bb',
    500: '#4d299d',
    950: '#000000',
  },
}
SCSS
$custom: #4d299d;
$custom-light: #8766bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d299d",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 258.621,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40222,
    "c": 0.17497,
    "h": 290.5
  },
  "luminance": 0.05598
}

Semantic roles & 50–950 ramp

primary
#4D299D
secondary
#A2BE64
accent
#E246B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D299D

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

Preview Lab → · Contrast checker → · Palette generator →

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