#4D28BD#4D28BD

#4D28BD is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.213 H 284.5°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4D28BD
RGBrgb(77, 40, 189)
HSLhsl(255, 65%, 45%)
HSVhsv(255, 79%, 74%)
CMYKcmyk(59.3%, 78.8%, 0%, 25.9%)
CIE-LABlab(31.27, 53.86, -71.50)
CIE-LCHlch(31.27, 89.52, 306.99°)
OKLaboklab(43.18% 0.0533 -0.2061)
OKLCHoklch(43.18% 0.213 284.5)
XYZxyz(13.0019, 6.7687, 48.7556)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28BD #98BD28
analogous
#284EBD #4D28BD #9728BD
triadic
#4D28BD #BD4D28 #28BD4D
tetradic
#4D28BD #BD284E #98BD28 #28BD97
square
#4D28BD #BD284E #98BD28 #28BD97
split-complementary
#4D28BD #BD9728 #4EBD28
monochromatic
#241358 #381D8A #4D28BD #6D4AD9 #967CE3

Accessibility & contrast

On white

8.92
#4D28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4D28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28BD
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28BD#FFFFFF#000000##FFFFFF
##4D28BD1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0045BA
Tritanopia (blue-blind)
#025472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d28bd;
/* rgb */ color: rgb(77, 40, 189);
/* oklch */ color: oklch(43.2% 0.213 284.5);
Tailwind
colors: {
  custom: {
    50: '#8c67d2',
    500: '#4d28bd',
    950: '#000000',
  },
}
SCSS
$custom: #4d28bd;
$custom-light: #8c67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28bd",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 254.899,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.21284,
    "h": 284.5
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#4D28BD
secondary
#B6CB75
accent
#E840BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4D28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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