#4828AB#4828AB

#4828AB is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.193 H 285.3°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4828AB
RGBrgb(72, 40, 171)
HSLhsl(255, 62%, 41%)
HSVhsv(255, 77%, 67%)
CMYKcmyk(57.9%, 76.6%, 0%, 32.9%)
CIE-LABlab(28.99, 48.09, -64.56)
CIE-LCHlch(28.99, 80.50, 306.68°)
OKLaboklab(40.94% 0.0509 -0.1859)
OKLCHoklch(40.94% 0.193 285.3)
XYZxyz(10.7797, 5.8349, 39.0784)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828AB #8BAB28
analogous
#284AAB #4828AB #8A28AB
triadic
#4828AB #AB4828 #28AB48
tetradic
#4828AB #AB284A #8BAB28 #28AB8A
square
#4828AB #AB284A #8BAB28 #28AB8A
split-complementary
#4828AB #AB8A28 #4AAB28
monochromatic
#1E1148 #331C79 #4828AB #623ED2 #8B70DE

Accessibility & contrast

On white

9.69
#4828AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4828AB
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4828AB#FFFFFF#000000##FFFFFF
##4828AB1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#144D68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4828ab;
/* rgb */ color: rgb(72, 40, 171);
/* oklch */ color: oklch(40.9% 0.193 285.3);
Tailwind
colors: {
  custom: {
    50: '#8766c5',
    500: '#4828ab',
    950: '#000000',
  },
}
SCSS
$custom: #4828ab;
$custom-light: #8766c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4828ab",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 254.656,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40935,
    "c": 0.19278,
    "h": 285.3
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#4828AB
secondary
#AEC46A
accent
#E543BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4828AB

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

Preview Lab → · Contrast checker → · Palette generator →

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