#4D28A2#4D28A2

#4D28A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.182 H 289.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4D28A2
RGBrgb(77, 40, 162)
HSLhsl(258, 60%, 40%)
HSVhsv(258, 75%, 64%)
CMYKcmyk(52.5%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.65, 46.22, -59.67)
CIE-LCHlch(28.65, 75.47, 307.76°)
OKLaboklab(40.56% 0.0609 -0.1715)
OKLCHoklch(40.56% 0.182 289.5)
XYZxyz(10.3391, 5.7035, 34.7315)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28A2 #7DA228
analogous
#2840A2 #4D28A2 #8A28A2
triadic
#4D28A2 #A24D28 #28A24D
tetradic
#4D28A2 #A22840 #7DA228 #28A28A
square
#4D28A2 #A22840 #7DA228 #28A28A
split-complementary
#4D28A2 #A28A28 #40A228
monochromatic
#1E1040 #361C71 #4D28A2 #6639CE #8C6ADA

Accessibility & contrast

On white

9.81
#4D28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28A2
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28A2#FFFFFF#000000##FFFFFF
##4D28A21.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#2E4963
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d28a2;
/* rgb */ color: rgb(77, 40, 162);
/* oklch */ color: oklch(40.6% 0.182 289.5);
Tailwind
colors: {
  custom: {
    50: '#8866bf',
    500: '#4d28a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d28a2;
$custom-light: #8866bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28a2",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 258.197,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40558,
    "c": 0.18194,
    "h": 289.5
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#4D28A2
secondary
#A5C165
accent
#E444B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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