#4D28B3#4D28B3

#4D28B3 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.2% C 0.202 H 286.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4D28B3
RGBrgb(77, 40, 179)
HSLhsl(256, 63%, 43%)
HSVhsv(256, 78%, 70%)
CMYKcmyk(57%, 77.7%, 0%, 29.8%)
CIE-LABlab(30.28, 51.04, -67.21)
CIE-LCHlch(30.28, 84.39, 307.21°)
OKLaboklab(42.19% 0.0562 -0.1935)
OKLCHoklch(42.19% 0.202 286.2)
XYZxyz(11.9536, 6.3494, 43.2348)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28B3 #8EB328
analogous
#2849B3 #4D28B3 #9228B3
triadic
#4D28B3 #B34D28 #28B34D
tetradic
#4D28B3 #B32849 #8EB328 #28B392
square
#4D28B3 #B32849 #8EB328 #28B392
split-complementary
#4D28B3 #B39228 #49B328
monochromatic
#22124F #371D81 #4D28B3 #6A43D5 #9275E0

Accessibility & contrast

On white

9.25
#4D28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28B3
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28B3#FFFFFF#000000##FFFFFF
##4D28B31.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#1B506D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d28b3;
/* rgb */ color: rgb(77, 40, 179);
/* oklch */ color: oklch(42.2% 0.202 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b67cb',
    500: '#4d28b3',
    950: '#000000',
  },
}
SCSS
$custom: #4d28b3;
$custom-light: #8b67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28b3",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 255.971,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.20153,
    "h": 286.2
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#4D28B3
secondary
#B0C86F
accent
#E641BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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