#4D28B0#4D28B0

#4D28B0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.198 H 286.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4D28B0
RGBrgb(77, 40, 176)
HSLhsl(256, 63%, 42%)
HSVhsv(256, 77%, 69%)
CMYKcmyk(56.2%, 77.3%, 0%, 31%)
CIE-LABlab(29.98, 50.19, -65.91)
CIE-LCHlch(29.98, 82.84, 307.29°)
OKLaboklab(41.9% 0.0571 -0.1897)
OKLCHoklch(41.9% 0.198 286.7)
XYZxyz(11.6535, 6.2293, 41.6542)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28B0 #8BB028
analogous
#2847B0 #4D28B0 #9128B0
triadic
#4D28B0 #B04D28 #28B04D
tetradic
#4D28B0 #B02847 #8BB028 #28B091
square
#4D28B0 #B02847 #8BB028 #28B091
split-complementary
#4D28B0 #B09128 #47B028
monochromatic
#21114C #371D7E #4D28B0 #6941D4 #9173DF

Accessibility & contrast

On white

9.35
#4D28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28B0
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28B0#FFFFFF#000000##FFFFFF
##4D28B01.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#1F4F6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d28b0;
/* rgb */ color: rgb(77, 40, 176);
/* oklch */ color: oklch(41.9% 0.198 286.7);
Tailwind
colors: {
  custom: {
    50: '#8a67c9',
    500: '#4d28b0',
    950: '#000000',
  },
}
SCSS
$custom: #4d28b0;
$custom-light: #8a67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28b0",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 256.324,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41897,
    "c": 0.19812,
    "h": 286.7
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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