#4D28B4#4D28B4

#4D28B4 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.203 H 286.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4D28B4
RGBrgb(77, 40, 180)
HSLhsl(256, 64%, 43%)
HSVhsv(256, 78%, 71%)
CMYKcmyk(57.2%, 77.8%, 0%, 29.4%)
CIE-LABlab(30.38, 51.32, -67.65)
CIE-LCHlch(30.38, 84.91, 307.19°)
OKLaboklab(42.29% 0.0559 -0.1948)
OKLCHoklch(42.29% 0.203 286)
XYZxyz(12.0551, 6.3900, 43.7693)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28B4 #8FB428
analogous
#2849B4 #4D28B4 #9328B4
triadic
#4D28B4 #B44D28 #28B44D
tetradic
#4D28B4 #B42849 #8FB428 #28B493
square
#4D28B4 #B42849 #8FB428 #28B493
split-complementary
#4D28B4 #B49328 #49B428
monochromatic
#221250 #381D82 #4D28B4 #6A44D5 #9276E1

Accessibility & contrast

On white

9.22
#4D28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28B4
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28B4#FFFFFF#000000##FFFFFF
##4D28B41.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#19516D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d28b4;
/* rgb */ color: rgb(77, 40, 180);
/* oklch */ color: oklch(42.3% 0.203 286.0);
Tailwind
colors: {
  custom: {
    50: '#8b67cc',
    500: '#4d28b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d28b4;
$custom-light: #8b67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28b4",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 255.857,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42289,
    "c": 0.20267,
    "h": 286
  },
  "luminance": 0.06391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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