#4828AC#4828AC

#4828AC is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.194 H 285.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4828AC
RGBrgb(72, 40, 172)
HSLhsl(255, 62%, 42%)
HSVhsv(255, 77%, 67%)
CMYKcmyk(58.1%, 76.7%, 0%, 32.5%)
CIE-LABlab(29.09, 48.38, -65.00)
CIE-LCHlch(29.09, 81.03, 306.66°)
OKLaboklab(41.03% 0.0506 -0.1872)
OKLCHoklch(41.03% 0.194 285.1)
XYZxyz(10.8754, 5.8732, 39.5823)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828AC #8CAC28
analogous
#284AAC #4828AC #8A28AC
triadic
#4828AC #AC4828 #28AC48
tetradic
#4828AC #AC284A #8CAC28 #28AC8A
square
#4828AC #AC284A #8CAC28 #28AC8A
split-complementary
#4828AC #AC8A28 #4AAC28
monochromatic
#1E1149 #331C7A #4828AC #633FD2 #8B71DE

Accessibility & contrast

On white

9.66
#4828AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4828AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4828AC
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4828AC#FFFFFF#000000##FFFFFF
##4828AC1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#0040AA
Tritanopia (blue-blind)
#124E69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4828ac;
/* rgb */ color: rgb(72, 40, 172);
/* oklch */ color: oklch(41.0% 0.194 285.1);
Tailwind
colors: {
  custom: {
    50: '#8766c6',
    500: '#4828ac',
    950: '#000000',
  },
}
SCSS
$custom: #4828ac;
$custom-light: #8766c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4828ac",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 254.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41033,
    "c": 0.19395,
    "h": 285.1
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#4828AC
secondary
#AFC56B
accent
#E542BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4828AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4828AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva