#4828BA#4828BA

#4828BA is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.210 H 282.8°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4828BA
RGBrgb(72, 40, 186)
HSLhsl(253, 65%, 44%)
HSVhsv(253, 78%, 73%)
CMYKcmyk(61.3%, 78.5%, 0%, 27.1%)
CIE-LABlab(30.50, 52.44, -71.03)
CIE-LCHlch(30.50, 88.29, 306.44°)
OKLaboklab(42.44% 0.0467 -0.2048)
OKLCHoklch(42.44% 0.21 282.8)
XYZxyz(12.2915, 6.4396, 47.0401)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828BA #9ABA28
analogous
#2851BA #4828BA #9128BA
triadic
#4828BA #BA4828 #28BA48
tetradic
#4828BA #BA2851 #9ABA28 #28BA91
square
#4828BA #BA2851 #9ABA28 #28BA91
split-complementary
#4828BA #BA9128 #51BA28
monochromatic
#211255 #351D88 #4828BA #6748D8 #917AE2

Accessibility & contrast

On white

9.18
#4828BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4828BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4828BA#FFFFFF#000000##FFFFFF
##4828BA1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4828ba;
/* rgb */ color: rgb(72, 40, 186);
/* oklch */ color: oklch(42.4% 0.210 282.8);
Tailwind
colors: {
  custom: {
    50: '#8967d0',
    500: '#4828ba',
    950: '#000000',
  },
}
SCSS
$custom: #4828ba;
$custom-light: #8967d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4828ba",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 253.151,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42436,
    "c": 0.21008,
    "h": 282.8
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#4828BA
secondary
#B7CA73
accent
#E840C3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4828BA

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

Preview Lab → · Contrast checker → · Palette generator →

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