#4D298E#4D298E

#4D298E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.157 H 294.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4D298E
RGBrgb(77, 41, 142)
HSLhsl(261, 55%, 36%)
HSVhsv(261, 71%, 56%)
CMYKcmyk(45.8%, 71.1%, 0%, 44.3%)
CIE-LABlab(27.06, 40.02, -50.01)
CIE-LCHlch(27.06, 64.05, 308.66°)
OKLaboklab(38.89% 0.0644 -0.1431)
OKLCHoklch(38.89% 0.157 294.2)
XYZxyz(8.7347, 5.1164, 26.1133)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D298E #6A8E29
analogous
#29378E #4D298E #7F298E
triadic
#4D298E #8E4D29 #298E4D
tetradic
#4D298E #8E2937 #6A8E29 #298E7F
square
#4D298E #8E2937 #6A8E29 #298E7F
split-complementary
#4D298E #8E7F29 #378E29
monochromatic
#190E2F #331B5F #4D298E #6737BD #8860D1

Accessibility & contrast

On white

10.38
#4D298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D298E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D298E#FFFFFF#000000##FFFFFF
##4D298E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d298e;
/* rgb */ color: rgb(77, 41, 142);
/* oklch */ color: oklch(38.9% 0.157 294.2);
Tailwind
colors: {
  custom: {
    50: '#8566b0',
    500: '#4d298e',
    950: '#000000',
  },
}
SCSS
$custom: #4d298e;
$custom-light: #8566b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d298e",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 261.386,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38886,
    "c": 0.15695,
    "h": 294.2
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#4D298E
secondary
#96B75C
accent
#DF49A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D298E

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

Preview Lab → · Contrast checker → · Palette generator →

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