#4D2799#4D2799

#4D2799 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.172 H 291.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4D2799
RGBrgb(77, 39, 153)
HSLhsl(260, 59%, 38%)
HSVhsv(260, 75%, 60%)
CMYKcmyk(49.7%, 74.5%, 0%, 40%)
CIE-LABlab(27.65, 44.17, -55.83)
CIE-LCHlch(27.65, 71.19, 308.35°)
OKLaboklab(39.6% 0.064 -0.1602)
OKLCHoklch(39.6% 0.172 291.8)
XYZxyz(9.5342, 5.3284, 30.6569)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2799 #739927
analogous
#273A99 #4D2799 #862799
triadic
#4D2799 #994D27 #27994D
tetradic
#4D2799 #99273A #739927 #279986
square
#4D2799 #99273A #739927 #279986
split-complementary
#4D2799 #998627 #3A9927
monochromatic
#1C0E37 #341B68 #4D2799 #6633CA #8A63D7

Accessibility & contrast

On white

10.17
#4D2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2799
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2799#FFFFFF#000000##FFFFFF
##4D27991.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#34455E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2799;
/* rgb */ color: rgb(77, 39, 153);
/* oklch */ color: oklch(39.6% 0.172 291.8);
Tailwind
colors: {
  custom: {
    50: '#8765b8',
    500: '#4d2799',
    950: '#000000',
  },
}
SCSS
$custom: #4d2799;
$custom-light: #8765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2799",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 260,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.396,
    "c": 0.17249,
    "h": 291.8
  },
  "luminance": 0.05329
}

Semantic roles & 50–950 ramp

primary
#4D2799
secondary
#9EBD5F
accent
#E345AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2799

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

Preview Lab → · Contrast checker → · Palette generator →

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