#4D28AF#4D28AF

#4D28AF is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.197 H 286.9°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4D28AF
RGBrgb(77, 40, 175)
HSLhsl(256, 63%, 42%)
HSVhsv(256, 77%, 69%)
CMYKcmyk(56%, 77.1%, 0%, 31.4%)
CIE-LABlab(29.89, 49.91, -65.47)
CIE-LCHlch(29.89, 82.32, 307.32°)
OKLaboklab(41.8% 0.0574 -0.1884)
OKLCHoklch(41.8% 0.197 286.9)
XYZxyz(11.5549, 6.1899, 41.1350)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28AF #8AAF28
analogous
#2847AF #4D28AF #9028AF
triadic
#4D28AF #AF4D28 #28AF4D
tetradic
#4D28AF #AF2847 #8AAF28 #28AF90
square
#4D28AF #AF2847 #8AAF28 #28AF90
split-complementary
#4D28AF #AF9028 #47AF28
monochromatic
#21114B #371D7D #4D28AF #6941D4 #9073DF

Accessibility & contrast

On white

9.38
#4D28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28AF
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28AF#FFFFFF#000000##FFFFFF
##4D28AF1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#214F6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d28af;
/* rgb */ color: rgb(77, 40, 175);
/* oklch */ color: oklch(41.8% 0.197 286.9);
Tailwind
colors: {
  custom: {
    50: '#8a67c8',
    500: '#4d28af',
    950: '#000000',
  },
}
SCSS
$custom: #4d28af;
$custom-light: #8a67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28af",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 256.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.19697,
    "h": 286.9
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#4D28AF
secondary
#AEC66D
accent
#E642B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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