#4D299F#4D299F

#4D299F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.177 H 290.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4D299F
RGBrgb(77, 41, 159)
HSLhsl(258, 59%, 39%)
HSVhsv(258, 74%, 62%)
CMYKcmyk(51.6%, 74.2%, 0%, 37.6%)
CIE-LABlab(28.55, 44.86, -58.00)
CIE-LCHlch(28.55, 73.33, 307.72°)
OKLaboklab(40.41% 0.0608 -0.1666)
OKLCHoklch(40.41% 0.177 290)
XYZxyz(10.1097, 5.6664, 33.3552)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D299F #7B9F29
analogous
#29409F #4D299F #88299F
triadic
#4D299F #9F4D29 #299F4D
tetradic
#4D299F #9F2940 #7B9F29 #299F88
square
#4D299F #9F2940 #7B9F29 #299F88
split-complementary
#4D299F #9F8829 #409F29
monochromatic
#1E103E #351C6E #4D299F #6639CC #8C6AD9

Accessibility & contrast

On white

9.84
#4D299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D299F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D299F#FFFFFF#000000##FFFFFF
##4D299F1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#304962
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d299f;
/* rgb */ color: rgb(77, 41, 159);
/* oklch */ color: oklch(40.4% 0.177 290.0);
Tailwind
colors: {
  custom: {
    50: '#8766bc',
    500: '#4d299f',
    950: '#000000',
  },
}
SCSS
$custom: #4d299f;
$custom-light: #8766bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d299f",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 258.305,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40405,
    "c": 0.17734,
    "h": 290
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#4D299F
secondary
#A3BF65
accent
#E246B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D299F

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

Preview Lab → · Contrast checker → · Palette generator →

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