#4828AD#4828AD

#4828AD is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.195 H 285.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4828AD
RGBrgb(72, 40, 173)
HSLhsl(254, 62%, 42%)
HSVhsv(254, 77%, 68%)
CMYKcmyk(58.4%, 76.9%, 0%, 32.2%)
CIE-LABlab(29.19, 48.67, -65.44)
CIE-LCHlch(29.19, 81.55, 306.64°)
OKLaboklab(41.13% 0.0504 -0.1885)
OKLCHoklch(41.13% 0.195 285)
XYZxyz(10.9718, 5.9118, 40.0900)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828AD #8DAD28
analogous
#284BAD #4828AD #8B28AD
triadic
#4828AD #AD4828 #28AD48
tetradic
#4828AD #AD284B #8DAD28 #28AD8B
square
#4828AD #AD284B #8DAD28 #28AD8B
split-complementary
#4828AD #AD8B28 #4BAD28
monochromatic
#1F114A #331D7B #4828AD #633FD3 #8B71DE

Accessibility & contrast

On white

9.62
#4828AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4828AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4828AD#FFFFFF#000000##FFFFFF
##4828AD1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B1
Deuteranopia (green-blind)
#0041AB
Tritanopia (blue-blind)
#104E69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4828ad;
/* rgb */ color: rgb(72, 40, 173);
/* oklch */ color: oklch(41.1% 0.195 285.0);
Tailwind
colors: {
  custom: {
    50: '#8766c7',
    500: '#4828ad',
    950: '#000000',
  },
}
SCSS
$custom: #4828ad;
$custom-light: #8766c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4828ad",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 254.436,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41132,
    "c": 0.19511,
    "h": 285
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#4828AD
secondary
#B0C56C
accent
#E642BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4828AD

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

Preview Lab → · Contrast checker → · Palette generator →

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