#4D2792#4D2792

#4D2792 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.164 H 293.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4D2792
RGBrgb(77, 39, 146)
HSLhsl(261, 58%, 36%)
HSVhsv(261, 73%, 57%)
CMYKcmyk(47.3%, 73.3%, 0%, 42.7%)
CIE-LABlab(27.03, 42.20, -52.54)
CIE-LCHlch(27.03, 67.39, 308.77°)
OKLaboklab(38.97% 0.0656 -0.1505)
OKLCHoklch(38.97% 0.164 293.5)
XYZxyz(8.9730, 5.1039, 27.7009)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2792 #6C9227
analogous
#273792 #4D2792 #832792
triadic
#4D2792 #924D27 #27924D
tetradic
#4D2792 #922737 #6C9227 #279283
square
#4D2792 #922737 #6C9227 #279283
split-complementary
#4D2792 #928327 #379227
monochromatic
#1A0D31 #341A62 #4D2792 #6634C2 #895FD4

Accessibility & contrast

On white

10.39
#4D2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2792
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2792#FFFFFF#000000##FFFFFF
##4D27921.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003E90
Tritanopia (blue-blind)
#39435A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2792;
/* rgb */ color: rgb(77, 39, 146);
/* oklch */ color: oklch(39.0% 0.164 293.5);
Tailwind
colors: {
  custom: {
    50: '#8665b3',
    500: '#4d2792',
    950: '#000000',
  },
}
SCSS
$custom: #4d2792;
$custom-light: #8665b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2792",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 261.308,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.16421,
    "h": 293.5
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#4D2792
secondary
#98BA5B
accent
#E147AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2792

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

Preview Lab → · Contrast checker → · Palette generator →

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