#4C28A3#4C28A3

#4C28A3 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.183 H 288.8°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4C28A3
RGBrgb(76, 40, 163)
HSLhsl(258, 61%, 40%)
HSVhsv(258, 75%, 64%)
CMYKcmyk(53.4%, 75.5%, 0%, 36.1%)
CIE-LABlab(28.64, 46.35, -60.30)
CIE-LCHlch(28.64, 76.06, 307.55°)
OKLaboklab(40.55% 0.0591 -0.1733)
OKLCHoklch(40.55% 0.183 288.8)
XYZxyz(10.3482, 5.6979, 35.1978)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28A3 #7FA328
analogous
#2842A3 #4C28A3 #8A28A3
triadic
#4C28A3 #A34C28 #28A34C
tetradic
#4C28A3 #A32842 #7FA328 #28A38A
square
#4C28A3 #A32842 #7FA328 #28A38A
split-complementary
#4C28A3 #A38A28 #42A328
monochromatic
#1E1041 #351C72 #4C28A3 #653ACF #8C6BDB

Accessibility & contrast

On white

9.81
#4C28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4C28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28A3
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28A3#FFFFFF#000000##FFFFFF
##4C28A31.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#2A4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c28a3;
/* rgb */ color: rgb(76, 40, 163);
/* oklch */ color: oklch(40.6% 0.183 288.8);
Tailwind
colors: {
  custom: {
    50: '#8766bf',
    500: '#4c28a3',
    950: '#000000',
  },
}
SCSS
$custom: #4c28a3;
$custom-light: #8766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28a3",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 257.561,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40551,
    "c": 0.18314,
    "h": 288.8
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#4C28A3
secondary
#A6C166
accent
#E444B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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