#4728A4#4728A4

#4728A4 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.185 H 286.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4728A4
RGBrgb(71, 40, 164)
HSLhsl(255, 61%, 40%)
HSVhsv(255, 76%, 64%)
CMYKcmyk(56.7%, 75.6%, 0%, 35.7%)
CIE-LABlab(28.21, 45.91, -61.62)
CIE-LCHlch(28.21, 76.85, 306.69°)
OKLaboklab(40.16% 0.0513 -0.1774)
OKLCHoklch(40.16% 0.185 286.1)
XYZxyz(10.0561, 5.5369, 35.6536)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728A4 #85A428
analogous
#2847A4 #4728A4 #8528A4
triadic
#4728A4 #A44728 #28A447
tetradic
#4728A4 #A42847 #85A428 #28A485
square
#4728A4 #A42847 #85A428 #28A485
split-complementary
#4728A4 #A48528 #47A428
monochromatic
#1C1042 #321C73 #4728A4 #5F3ACF #876BDB

Accessibility & contrast

On white

9.96
#4728A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4728A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4728A4#FFFFFF#000000##FFFFFF
##4728A41.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#1B4B64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4728a4;
/* rgb */ color: rgb(71, 40, 164);
/* oklch */ color: oklch(40.2% 0.185 286.1);
Tailwind
colors: {
  custom: {
    50: '#8566c0',
    500: '#4728a4',
    950: '#000000',
  },
}
SCSS
$custom: #4728a4;
$custom-light: #8566c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4728a4",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 255,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.40158,
    "c": 0.18465,
    "h": 286.1
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

primary
#4728A4
secondary
#ABC166
accent
#E444BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4728A4

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

Preview Lab → · Contrast checker → · Palette generator →

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