#4D289D#4D289D

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

Color values

HEX#4D289D
RGBrgb(77, 40, 157)
HSLhsl(259, 59%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(51%, 74.5%, 0%, 38.4%)
CIE-LABlab(28.19, 44.80, -57.38)
CIE-LCHlch(28.19, 72.80, 307.98°)
OKLaboklab(40.09% 0.0621 -0.1648)
OKLCHoklch(40.09% 0.176 290.7)
XYZxyz(9.9034, 5.5293, 32.4372)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D289D #789D28
analogous
#283D9D #4D289D #87289D
triadic
#4D289D #9D4D28 #289D4D
tetradic
#4D289D #9D283D #789D28 #289D87
square
#4D289D #9D283D #789D28 #289D87
split-complementary
#4D289D #9D8728 #3D9D28
monochromatic
#1D0F3B #351C6C #4D289D #6636CC #8B67D8

Accessibility & contrast

On white

9.97
#4D289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D289D
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D289D#FFFFFF#000000##FFFFFF
##4D289D1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#314760
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d289d;
/* rgb */ color: rgb(77, 40, 157);
/* oklch */ color: oklch(40.1% 0.176 290.7);
Tailwind
colors: {
  custom: {
    50: '#8766bb',
    500: '#4d289d',
    950: '#000000',
  },
}
SCSS
$custom: #4d289d;
$custom-light: #8766bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d289d",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 258.974,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40094,
    "c": 0.17608,
    "h": 290.7
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#4D289D
secondary
#A1BE62
accent
#E345B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D289D

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

Preview Lab → · Contrast checker → · Palette generator →

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