#4828A2#4828A2

#4828A2 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.182 H 287.0°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#4828A2
RGBrgb(72, 40, 162)
HSLhsl(256, 60%, 40%)
HSVhsv(256, 75%, 64%)
CMYKcmyk(55.6%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.12, 45.47, -60.55)
CIE-LCHlch(28.12, 75.72, 306.90°)
OKLaboklab(40.06% 0.0533 -0.1742)
OKLCHoklch(40.06% 0.182 287)
XYZxyz(9.9509, 5.5034, 34.7133)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828A2 #82A228
analogous
#2845A2 #4828A2 #8528A2
triadic
#4828A2 #A24828 #28A248
tetradic
#4828A2 #A22845 #82A228 #28A285
square
#4828A2 #A22845 #82A228 #28A285
split-complementary
#4828A2 #A28528 #45A228
monochromatic
#1C1040 #321C71 #4828A2 #6039CE #886ADA

Accessibility & contrast

On white

10.00
#4828A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4828A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4828A2#FFFFFF#000000##FFFFFF
##4828A21.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#214A63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4828a2;
/* rgb */ color: rgb(72, 40, 162);
/* oklch */ color: oklch(40.1% 0.182 287.0);
Tailwind
colors: {
  custom: {
    50: '#8566bf',
    500: '#4828a2',
    950: '#000000',
  },
}
SCSS
$custom: #4828a2;
$custom-light: #8566bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4828a2",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 255.738,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40061,
    "c": 0.18219,
    "h": 287
  },
  "luminance": 0.05504
}

Semantic roles & 50–950 ramp

primary
#4828A2
secondary
#A9C165
accent
#E444BA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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