#4728AA#4728AA

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

Color values

HEX#4728AA
RGBrgb(71, 40, 170)
HSLhsl(254, 62%, 41%)
HSVhsv(254, 76%, 67%)
CMYKcmyk(58.2%, 76.5%, 0%, 33.3%)
CIE-LABlab(28.80, 47.67, -64.28)
CIE-LCHlch(28.80, 80.03, 306.56°)
OKLaboklab(40.74% 0.0497 -0.1852)
OKLCHoklch(40.74% 0.192 285)
XYZxyz(10.6108, 5.7588, 38.5748)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728AA #8BAA28
analogous
#284AAA #4728AA #8828AA
triadic
#4728AA #AA4728 #28AA47
tetradic
#4728AA #AA284A #8BAA28 #28AA88
square
#4728AA #AA284A #8BAA28 #28AA88
split-complementary
#4728AA #AA8828 #4AAA28
monochromatic
#1E1147 #321C78 #4728AA #613ED2 #896FDD

Accessibility & contrast

On white

9.76
#4728AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4728AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4728AA
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4728AA#FFFFFF#000000##FFFFFF
##4728AA1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4728aa;
/* rgb */ color: rgb(71, 40, 170);
/* oklch */ color: oklch(40.7% 0.192 285.0);
Tailwind
colors: {
  custom: {
    50: '#8666c4',
    500: '#4728aa',
    950: '#000000',
  },
}
SCSS
$custom: #4728aa;
$custom-light: #8666c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4728aa",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 254.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.19172,
    "h": 285
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4728AA

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

Preview Lab → · Contrast checker → · Palette generator →

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