#4D28A7#4D28A7

#4D28A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.188 H 288.5°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4D28A7
RGBrgb(77, 40, 167)
HSLhsl(257, 61%, 41%)
HSVhsv(257, 76%, 65%)
CMYKcmyk(53.9%, 76%, 0%, 34.5%)
CIE-LABlab(29.12, 47.64, -61.92)
CIE-LCHlch(29.12, 78.12, 307.57°)
OKLaboklab(41.03% 0.0596 -0.1781)
OKLCHoklch(41.03% 0.188 288.5)
XYZxyz(10.7924, 5.8849, 37.1189)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28A7 #82A728
analogous
#2843A7 #4D28A7 #8C28A7
triadic
#4D28A7 #A74D28 #28A74D
tetradic
#4D28A7 #A72843 #82A728 #28A78C
square
#4D28A7 #A72843 #82A728 #28A78C
split-complementary
#4D28A7 #A78C28 #43A728
monochromatic
#1F1044 #361C76 #4D28A7 #673CD0 #8E6DDC

Accessibility & contrast

On white

9.65
#4D28A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D28A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28A7
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28A7#FFFFFF#000000##FFFFFF
##4D28A71.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#294B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d28a7;
/* rgb */ color: rgb(77, 40, 167);
/* oklch */ color: oklch(41.0% 0.188 288.5);
Tailwind
colors: {
  custom: {
    50: '#8966c2',
    500: '#4d28a7',
    950: '#000000',
  },
}
SCSS
$custom: #4d28a7;
$custom-light: #8966c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28a7",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 257.48,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4103,
    "c": 0.18777,
    "h": 288.5
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#4D28A7
secondary
#A8C368
accent
#E443B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4D28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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