#4828A4#4828A4

#4828A4 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.185 H 286.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4828A4
RGBrgb(72, 40, 164)
HSLhsl(255, 61%, 40%)
HSVhsv(255, 76%, 64%)
CMYKcmyk(56.1%, 75.6%, 0%, 35.7%)
CIE-LABlab(28.31, 46.05, -61.45)
CIE-LCHlch(28.31, 76.79, 306.85°)
OKLaboklab(40.25% 0.0528 -0.1769)
OKLCHoklch(40.25% 0.185 286.6)
XYZxyz(10.1301, 5.5751, 35.6571)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828A4 #84A428
analogous
#2846A4 #4828A4 #8628A4
triadic
#4828A4 #A44828 #28A448
tetradic
#4828A4 #A42846 #84A428 #28A486
square
#4828A4 #A42846 #84A428 #28A486
split-complementary
#4828A4 #A48628 #46A428
monochromatic
#1D1042 #321C73 #4828A4 #613ACF #886BDB

Accessibility & contrast

On white

9.93
#4828A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4828A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4828A4
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4828A4#FFFFFF#000000##FFFFFF
##4828A41.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#1F4B64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4828a4;
/* rgb */ color: rgb(72, 40, 164);
/* oklch */ color: oklch(40.3% 0.185 286.6);
Tailwind
colors: {
  custom: {
    50: '#8566c0',
    500: '#4828a4',
    950: '#000000',
  },
}
SCSS
$custom: #4828a4;
$custom-light: #8566c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4828a4",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 255.484,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.40253,
    "c": 0.18456,
    "h": 286.6
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#4828A4
secondary
#AAC166
accent
#E444BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4828A4

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

Preview Lab → · Contrast checker → · Palette generator →

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