#4C28A2#4C28A2

#4C28A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.182 H 289.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4C28A2
RGBrgb(76, 40, 162)
HSLhsl(258, 60%, 40%)
HSVhsv(258, 75%, 64%)
CMYKcmyk(53.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.54, 46.06, -59.85)
CIE-LCHlch(28.54, 75.52, 307.58°)
OKLaboklab(40.46% 0.0594 -0.172)
OKLCHoklch(40.46% 0.182 289)
XYZxyz(10.2590, 5.6622, 34.7278)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28A2 #7EA228
analogous
#2841A2 #4C28A2 #8928A2
triadic
#4C28A2 #A24C28 #28A24C
tetradic
#4C28A2 #A22841 #7EA228 #28A289
square
#4C28A2 #A22841 #7EA228 #28A289
split-complementary
#4C28A2 #A28928 #41A228
monochromatic
#1E1040 #351C71 #4C28A2 #6539CE #8B6ADA

Accessibility & contrast

On white

9.85
#4C28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28A2
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28A2#FFFFFF#000000##FFFFFF
##4C28A21.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#2B4963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c28a2;
/* rgb */ color: rgb(76, 40, 162);
/* oklch */ color: oklch(40.5% 0.182 289.0);
Tailwind
colors: {
  custom: {
    50: '#8766bf',
    500: '#4c28a2',
    950: '#000000',
  },
}
SCSS
$custom: #4c28a2;
$custom-light: #8766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28a2",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 257.705,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40457,
    "c": 0.18198,
    "h": 289
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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