#4C28B9#4C28B9

#4C28B9 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.208 H 284.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4C28B9
RGBrgb(76, 40, 185)
HSLhsl(255, 64%, 44%)
HSVhsv(255, 78%, 73%)
CMYKcmyk(58.9%, 78.4%, 0%, 27.5%)
CIE-LABlab(30.77, 52.61, -69.96)
CIE-LCHlch(30.77, 87.54, 306.94°)
OKLaboklab(42.69% 0.0529 -0.2016)
OKLCHoklch(42.69% 0.208 284.7)
XYZxyz(12.4936, 6.5561, 46.4966)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28B9 #95B928
analogous
#284CB9 #4C28B9 #9528B9
triadic
#4C28B9 #B94C28 #28B94C
tetradic
#4C28B9 #B9284C #95B928 #28B995
square
#4C28B9 #B9284C #95B928 #28B995
split-complementary
#4C28B9 #B99528 #4CB928
monochromatic
#231254 #371D87 #4C28B9 #6B47D7 #9379E2

Accessibility & contrast

On white

9.09
#4C28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4C28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28B9
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28B9#FFFFFF#000000##FFFFFF
##4C28B91.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#085370
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c28b9;
/* rgb */ color: rgb(76, 40, 185);
/* oklch */ color: oklch(42.7% 0.208 284.7);
Tailwind
colors: {
  custom: {
    50: '#8b67cf',
    500: '#4c28b9',
    950: '#000000',
  },
}
SCSS
$custom: #4c28b9;
$custom-light: #8b67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28b9",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 254.897,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.20844,
    "h": 284.7
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#4C28B9
secondary
#B4CA73
accent
#E740BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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