#4D28B5#4D28B5

#4D28B5 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.204 H 285.8°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4D28B5
RGBrgb(77, 40, 181)
HSLhsl(256, 64%, 43%)
HSVhsv(256, 78%, 71%)
CMYKcmyk(57.5%, 77.9%, 0%, 29%)
CIE-LABlab(30.47, 51.60, -68.08)
CIE-LCHlch(30.47, 85.43, 307.16°)
OKLaboklab(42.39% 0.0556 -0.1961)
OKLCHoklch(42.39% 0.204 285.8)
XYZxyz(12.1573, 6.4308, 44.3078)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28B5 #90B528
analogous
#2849B5 #4D28B5 #9328B5
triadic
#4D28B5 #B54D28 #28B54D
tetradic
#4D28B5 #B52849 #90B528 #28B593
square
#4D28B5 #B52849 #90B528 #28B593
split-complementary
#4D28B5 #B59328 #49B528
monochromatic
#221251 #381D83 #4D28B5 #6B44D6 #9277E1

Accessibility & contrast

On white

9.18
#4D28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28B5
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28B5#FFFFFF#000000##FFFFFF
##4D28B51.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#18516E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d28b5;
/* rgb */ color: rgb(77, 40, 181);
/* oklch */ color: oklch(42.4% 0.204 285.8);
Tailwind
colors: {
  custom: {
    50: '#8b67cc',
    500: '#4d28b5',
    950: '#000000',
  },
}
SCSS
$custom: #4d28b5;
$custom-light: #8b67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28b5",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 255.745,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42387,
    "c": 0.20382,
    "h": 285.8
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#4D28B5
secondary
#B1C870
accent
#E741BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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