#4828BD#4828BD

#4828BD is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.213 H 282.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4828BD
RGBrgb(72, 40, 189)
HSLhsl(253, 65%, 45%)
HSVhsv(253, 79%, 74%)
CMYKcmyk(61.9%, 78.8%, 0%, 25.9%)
CIE-LABlab(30.80, 53.30, -72.29)
CIE-LCHlch(30.80, 89.82, 306.40°)
OKLaboklab(42.74% 0.0458 -0.2085)
OKLCHoklch(42.74% 0.213 282.4)
XYZxyz(12.6137, 6.5685, 48.7374)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828BD #9DBD28
analogous
#2852BD #4828BD #9328BD
triadic
#4828BD #BD4828 #28BD48
tetradic
#4828BD #BD2852 #9DBD28 #28BD93
square
#4828BD #BD2852 #9DBD28 #28BD93
split-complementary
#4828BD #BD9328 #52BD28
monochromatic
#221358 #351D8A #4828BD #684AD9 #927CE3

Accessibility & contrast

On white

9.08
#4828BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4828BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4828BD#FFFFFF#000000##FFFFFF
##4828BD1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0043BA
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4828bd;
/* rgb */ color: rgb(72, 40, 189);
/* oklch */ color: oklch(42.7% 0.213 282.4);
Tailwind
colors: {
  custom: {
    50: '#8a67d2',
    500: '#4828bd',
    950: '#000000',
  },
}
SCSS
$custom: #4828bd;
$custom-light: #8a67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4828bd",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 252.886,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.21349,
    "h": 282.4
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#4828BD
secondary
#B9CB75
accent
#E840C4
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4828BD

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

Preview Lab → · Contrast checker → · Palette generator →

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