#4C28BD#4C28BD

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

Color values

HEX#4C28BD
RGBrgb(76, 40, 189)
HSLhsl(254, 65%, 45%)
HSVhsv(254, 79%, 74%)
CMYKcmyk(59.8%, 78.8%, 0%, 25.9%)
CIE-LABlab(31.18, 53.74, -71.66)
CIE-LCHlch(31.18, 89.58, 306.87°)
OKLaboklab(43.09% 0.0517 -0.2066)
OKLCHoklch(43.09% 0.213 284.1)
XYZxyz(12.9218, 6.7274, 48.7518)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28BD #99BD28
analogous
#284EBD #4C28BD #9728BD
triadic
#4C28BD #BD4C28 #28BD4C
tetradic
#4C28BD #BD284E #99BD28 #28BD97
square
#4C28BD #BD284E #99BD28 #28BD97
split-complementary
#4C28BD #BD9728 #4EBD28
monochromatic
#231358 #381D8A #4C28BD #6C4AD9 #957CE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C28BD#FFFFFF#000000##FFFFFF
##4C28BD1.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)
#004EC1
Deuteranopia (green-blind)
#0044BA
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c28bd;
/* rgb */ color: rgb(76, 40, 189);
/* oklch */ color: oklch(43.1% 0.213 284.1);
Tailwind
colors: {
  custom: {
    50: '#8c67d2',
    500: '#4c28bd',
    950: '#000000',
  },
}
SCSS
$custom: #4c28bd;
$custom-light: #8c67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28bd",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 254.497,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43094,
    "c": 0.21295,
    "h": 284.1
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#4C28BD
secondary
#B7CB75
accent
#E840BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4C28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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