#4D299E#4D299E

#4D299E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.176 H 290.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4D299E
RGBrgb(77, 41, 158)
HSLhsl(258, 59%, 39%)
HSVhsv(258, 74%, 62%)
CMYKcmyk(51.3%, 74.1%, 0%, 38%)
CIE-LABlab(28.46, 44.57, -57.54)
CIE-LCHlch(28.46, 72.79, 307.76°)
OKLaboklab(40.31% 0.061 -0.1652)
OKLCHoklch(40.31% 0.176 290.3)
XYZxyz(10.0233, 5.6319, 32.9000)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D299E #7A9E29
analogous
#293F9E #4D299E #88299E
triadic
#4D299E #9E4D29 #299E4D
tetradic
#4D299E #9E293F #7A9E29 #299E88
square
#4D299E #9E293F #7A9E29 #299E88
split-complementary
#4D299E #9E8829 #3F9E29
monochromatic
#1E103D #351C6D #4D299E #6639CC #8B69D8

Accessibility & contrast

On white

9.88
#4D299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D299E
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D299E#FFFFFF#000000##FFFFFF
##4D299E1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#314861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d299e;
/* rgb */ color: rgb(77, 41, 158);
/* oklch */ color: oklch(40.3% 0.176 290.3);
Tailwind
colors: {
  custom: {
    50: '#8766bc',
    500: '#4d299e',
    950: '#000000',
  },
}
SCSS
$custom: #4d299e;
$custom-light: #8766bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d299e",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 258.462,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40313,
    "c": 0.17615,
    "h": 290.3
  },
  "luminance": 0.05632
}

Semantic roles & 50–950 ramp

primary
#4D299E
secondary
#A3BF64
accent
#E246B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D299E

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

Preview Lab → · Contrast checker → · Palette generator →

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