#4D299B#4D299B

#4D299B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.173 H 291.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4D299B
RGBrgb(77, 41, 155)
HSLhsl(259, 58%, 38%)
HSVhsv(259, 74%, 61%)
CMYKcmyk(50.3%, 73.5%, 0%, 39.2%)
CIE-LABlab(28.19, 43.71, -56.16)
CIE-LCHlch(28.19, 71.17, 307.90°)
OKLaboklab(40.04% 0.0617 -0.1612)
OKLCHoklch(40.04% 0.173 291)
XYZxyz(9.7682, 5.5298, 31.5567)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D299B #779B29
analogous
#293E9B #4D299B #86299B
triadic
#4D299B #9B4D29 #299B4D
tetradic
#4D299B #9B293E #779B29 #299B86
square
#4D299B #9B293E #779B29 #299B86
split-complementary
#4D299B #9B8629 #3E9B29
monochromatic
#1D0F3A #351C6B #4D299B #6637CA #8B67D7

Accessibility & contrast

On white

9.97
#4D299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D299B
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D299B#FFFFFF#000000##FFFFFF
##4D299B1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#33475F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d299b;
/* rgb */ color: rgb(77, 41, 155);
/* oklch */ color: oklch(40.0% 0.173 291.0);
Tailwind
colors: {
  custom: {
    50: '#8766b9',
    500: '#4d299b',
    950: '#000000',
  },
}
SCSS
$custom: #4d299b;
$custom-light: #8766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d299b",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 258.947,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40039,
    "c": 0.17259,
    "h": 291
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#4D299B
secondary
#A1BD63
accent
#E146B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D299B

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

Preview Lab → · Contrast checker → · Palette generator →

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