#4D289A#4D289A

#4D289A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.173 H 291.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4D289A
RGBrgb(77, 40, 154)
HSLhsl(259, 59%, 38%)
HSVhsv(259, 74%, 60%)
CMYKcmyk(50%, 74%, 0%, 39.6%)
CIE-LABlab(27.92, 43.94, -55.99)
CIE-LCHlch(27.92, 71.18, 308.12°)
OKLaboklab(39.82% 0.0628 -0.1607)
OKLCHoklch(39.82% 0.173 291.4)
XYZxyz(9.6504, 5.4281, 31.1048)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D289A #759A28
analogous
#283C9A #4D289A #86289A
triadic
#4D289A #9A4D28 #289A4D
tetradic
#4D289A #9A283C #759A28 #289A86
square
#4D289A #9A283C #759A28 #289A86
split-complementary
#4D289A #9A8628 #3C9A28
monochromatic
#1C0F39 #351B69 #4D289A #6535CA #8A65D7

Accessibility & contrast

On white

10.07
#4D289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D289A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D289A#FFFFFF#000000##FFFFFF
##4D289A1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#34465F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d289a;
/* rgb */ color: rgb(77, 40, 154);
/* oklch */ color: oklch(39.8% 0.173 291.4);
Tailwind
colors: {
  custom: {
    50: '#8766b9',
    500: '#4d289a',
    950: '#000000',
  },
}
SCSS
$custom: #4d289a;
$custom-light: #8766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d289a",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 259.474,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39819,
    "c": 0.17254,
    "h": 291.4
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#4D289A
secondary
#9FBD61
accent
#E246AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D289A

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

Preview Lab → · Contrast checker → · Palette generator →

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