#4828AA#4828AA

#4828AA is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.192 H 285.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4828AA
RGBrgb(72, 40, 170)
HSLhsl(255, 62%, 41%)
HSVhsv(255, 76%, 67%)
CMYKcmyk(57.6%, 76.5%, 0%, 33.3%)
CIE-LABlab(28.89, 47.80, -64.12)
CIE-LCHlch(28.89, 79.98, 306.71°)
OKLaboklab(40.84% 0.0512 -0.1846)
OKLCHoklch(40.84% 0.192 285.5)
XYZxyz(10.6848, 5.7969, 38.5783)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828AA #8AAA28
analogous
#2849AA #4828AA #8928AA
triadic
#4828AA #AA4828 #28AA48
tetradic
#4828AA #AA2849 #8AAA28 #28AA89
square
#4828AA #AA2849 #8AAA28 #28AA89
split-complementary
#4828AA #AA8928 #49AA28
monochromatic
#1E1147 #331C78 #4828AA #623ED2 #8A6FDD

Accessibility & contrast

On white

9.72
#4828AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4828AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4828AA#FFFFFF#000000##FFFFFF
##4828AA1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0040A8
Tritanopia (blue-blind)
#164D68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4828aa;
/* rgb */ color: rgb(72, 40, 170);
/* oklch */ color: oklch(40.8% 0.192 285.5);
Tailwind
colors: {
  custom: {
    50: '#8666c4',
    500: '#4828aa',
    950: '#000000',
  },
}
SCSS
$custom: #4828aa;
$custom-light: #8666c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4828aa",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 254.769,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.19161,
    "h": 285.5
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4828AA

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

Preview Lab → · Contrast checker → · Palette generator →

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