#4D28BC#4D28BC

#4D28BC is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.212 H 284.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#4D28BC
RGBrgb(77, 40, 188)
HSLhsl(255, 65%, 45%)
HSVhsv(255, 79%, 74%)
CMYKcmyk(59%, 78.7%, 0%, 26.3%)
CIE-LABlab(31.17, 53.58, -71.08)
CIE-LCHlch(31.17, 89.01, 307.01°)
OKLaboklab(43.08% 0.0536 -0.2048)
OKLCHoklch(43.08% 0.212 284.7)
XYZxyz(12.8937, 6.7254, 48.1859)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28BC #97BC28
analogous
#284DBC #4D28BC #9728BC
triadic
#4D28BC #BC4D28 #28BC4D
tetradic
#4D28BC #BC284D #97BC28 #28BC97
square
#4D28BC #BC284D #97BC28 #28BC97
split-complementary
#4D28BC #BC9728 #4DBC28
monochromatic
#241357 #381D8A #4D28BC #6D49D8 #957BE3

Accessibility & contrast

On white

8.95
#4D28BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D28BC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28BC#FFFFFF#000000##FFFFFF
##4D28BC1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#055472
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d28bc;
/* rgb */ color: rgb(77, 40, 188);
/* oklch */ color: oklch(43.1% 0.212 284.7);
Tailwind
colors: {
  custom: {
    50: '#8c67d1',
    500: '#4d28bc',
    950: '#000000',
  },
}
SCSS
$custom: #4d28bc;
$custom-light: #8c67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28bc",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 255,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43083,
    "c": 0.21171,
    "h": 284.7
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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