#4C28B4#4C28B4

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

Color values

HEX#4C28B4
RGBrgb(76, 40, 180)
HSLhsl(255, 64%, 43%)
HSVhsv(255, 78%, 71%)
CMYKcmyk(57.8%, 77.8%, 0%, 29.4%)
CIE-LABlab(30.28, 51.19, -67.81)
CIE-LCHlch(30.28, 84.97, 307.05°)
OKLaboklab(42.2% 0.0544 -0.1953)
OKLCHoklch(42.2% 0.203 285.6)
XYZxyz(11.9750, 6.3487, 43.7656)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28B4 #90B428
analogous
#284AB4 #4C28B4 #9228B4
triadic
#4C28B4 #B44C28 #28B44C
tetradic
#4C28B4 #B4284A #90B428 #28B492
square
#4C28B4 #B4284A #90B428 #28B492
split-complementary
#4C28B4 #B49228 #4AB428
monochromatic
#221250 #371D82 #4C28B4 #6944D5 #9176E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C28B4#FFFFFF#000000##FFFFFF
##4C28B41.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)
#004BB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#15516D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c28b4;
/* rgb */ color: rgb(76, 40, 180);
/* oklch */ color: oklch(42.2% 0.203 285.6);
Tailwind
colors: {
  custom: {
    50: '#8a67cc',
    500: '#4c28b4',
    950: '#000000',
  },
}
SCSS
$custom: #4c28b4;
$custom-light: #8a67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28b4",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 255.429,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42195,
    "c": 0.20276,
    "h": 285.6
  },
  "luminance": 0.06349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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