#4C28B5#4C28B5

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

Color values

HEX#4C28B5
RGBrgb(76, 40, 181)
HSLhsl(255, 64%, 43%)
HSVhsv(255, 78%, 71%)
CMYKcmyk(58%, 77.9%, 0%, 29%)
CIE-LABlab(30.37, 51.48, -68.25)
CIE-LCHlch(30.37, 85.49, 307.03°)
OKLaboklab(42.29% 0.0541 -0.1966)
OKLCHoklch(42.29% 0.204 285.4)
XYZxyz(12.0772, 6.3895, 44.3040)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28B5 #91B528
analogous
#284AB5 #4C28B5 #9228B5
triadic
#4C28B5 #B54C28 #28B54C
tetradic
#4C28B5 #B5284A #91B528 #28B592
square
#4C28B5 #B5284A #91B528 #28B592
split-complementary
#4C28B5 #B59228 #4AB528
monochromatic
#221251 #371D83 #4C28B5 #6A44D6 #9277E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C28B5#FFFFFF#000000##FFFFFF
##4C28B51.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)
#004BB9
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#13516E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c28b5;
/* rgb */ color: rgb(76, 40, 181);
/* oklch */ color: oklch(42.3% 0.204 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a67cc',
    500: '#4c28b5',
    950: '#000000',
  },
}
SCSS
$custom: #4c28b5;
$custom-light: #8a67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28b5",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 255.319,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42294,
    "c": 0.20391,
    "h": 285.4
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

primary
#4C28B5
secondary
#B2C870
accent
#E741BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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