#4C28AF#4C28AF

#4C28AF is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.197 H 286.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4C28AF
RGBrgb(76, 40, 175)
HSLhsl(256, 63%, 42%)
HSVhsv(256, 77%, 69%)
CMYKcmyk(56.6%, 77.1%, 0%, 31.4%)
CIE-LABlab(29.78, 49.77, -65.64)
CIE-LCHlch(29.78, 82.38, 307.17°)
OKLaboklab(41.7% 0.0558 -0.189)
OKLCHoklch(41.7% 0.197 286.5)
XYZxyz(11.4748, 6.1486, 41.1313)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28AF #8BAF28
analogous
#2848AF #4C28AF #9028AF
triadic
#4C28AF #AF4C28 #28AF4C
tetradic
#4C28AF #AF2848 #8BAF28 #28AF90
square
#4C28AF #AF2848 #8BAF28 #28AF90
split-complementary
#4C28AF #AF9028 #48AF28
monochromatic
#21114B #361D7D #4C28AF #6841D4 #8F73DF

Accessibility & contrast

On white

9.42
#4C28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28AF
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28AF#FFFFFF#000000##FFFFFF
##4C28AF1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#1D4F6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c28af;
/* rgb */ color: rgb(76, 40, 175);
/* oklch */ color: oklch(41.7% 0.197 286.5);
Tailwind
colors: {
  custom: {
    50: '#8967c8',
    500: '#4c28af',
    950: '#000000',
  },
}
SCSS
$custom: #4c28af;
$custom-light: #8967c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28af",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 256,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.19704,
    "h": 286.5
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#4C28AF
secondary
#AEC66D
accent
#E642BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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