#4D298D#4D298D

#4D298D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.156 H 294.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4D298D
RGBrgb(77, 41, 141)
HSLhsl(262, 55%, 36%)
HSVhsv(262, 71%, 55%)
CMYKcmyk(45.4%, 70.9%, 0%, 44.7%)
CIE-LABlab(26.98, 39.73, -49.53)
CIE-LCHlch(26.98, 63.50, 308.74°)
OKLaboklab(38.8% 0.0646 -0.1417)
OKLCHoklch(38.8% 0.156 294.5)
XYZxyz(8.6599, 5.0865, 25.7197)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D298D #698D29
analogous
#29378D #4D298D #7F298D
triadic
#4D298D #8D4D29 #298D4D
tetradic
#4D298D #8D2937 #698D29 #298D7F
square
#4D298D #8D2937 #698D29 #298D7F
split-complementary
#4D298D #8D7F29 #378D29
monochromatic
#190D2E #331B5E #4D298D #6737BC #8860D1

Accessibility & contrast

On white

10.41
#4D298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D298D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D298D#FFFFFF#000000##FFFFFF
##4D298D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#3B4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d298d;
/* rgb */ color: rgb(77, 41, 141);
/* oklch */ color: oklch(38.8% 0.156 294.5);
Tailwind
colors: {
  custom: {
    50: '#8566af',
    500: '#4d298d',
    950: '#000000',
  },
}
SCSS
$custom: #4d298d;
$custom-light: #8566af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d298d",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 261.6,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.388,
    "c": 0.15574,
    "h": 294.5
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#4D298D
secondary
#96B65B
accent
#DE4AA9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D298D

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

Preview Lab → · Contrast checker → · Palette generator →

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