#4D299C#4D299C

#4D299C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.174 H 290.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#4D299C
RGBrgb(77, 41, 156)
HSLhsl(259, 58%, 39%)
HSVhsv(259, 74%, 61%)
CMYKcmyk(50.6%, 73.7%, 0%, 38.8%)
CIE-LABlab(28.28, 44.00, -56.62)
CIE-LCHlch(28.28, 71.71, 307.85°)
OKLaboklab(40.13% 0.0615 -0.1625)
OKLCHoklch(40.13% 0.174 290.7)
XYZxyz(9.8525, 5.5636, 32.0008)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D299C #789C29
analogous
#293E9C #4D299C #86299C
triadic
#4D299C #9C4D29 #299C4D
tetradic
#4D299C #9C293E #789C29 #299C86
square
#4D299C #9C293E #789C29 #299C86
split-complementary
#4D299C #9C8629 #3E9C29
monochromatic
#1D103B #351C6C #4D299C #6638CB #8B68D7

Accessibility & contrast

On white

9.94
#4D299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D299C
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D299C#FFFFFF#000000##FFFFFF
##4D299C1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#324760
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d299c;
/* rgb */ color: rgb(77, 41, 156);
/* oklch */ color: oklch(40.1% 0.174 290.7);
Tailwind
colors: {
  custom: {
    50: '#8766ba',
    500: '#4d299c',
    950: '#000000',
  },
}
SCSS
$custom: #4d299c;
$custom-light: #8766ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d299c",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 258.783,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.17378,
    "h": 290.7
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D299C

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

Preview Lab → · Contrast checker → · Palette generator →

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