#4728AD#4728AD

#4728AD is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.195 H 284.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4728AD
RGBrgb(71, 40, 173)
HSLhsl(254, 62%, 42%)
HSVhsv(254, 77%, 68%)
CMYKcmyk(59%, 76.9%, 0%, 32.2%)
CIE-LABlab(29.09, 48.55, -65.60)
CIE-LCHlch(29.09, 81.61, 306.50°)
OKLaboklab(41.04% 0.0489 -0.189)
OKLCHoklch(41.04% 0.195 284.5)
XYZxyz(10.8978, 5.8736, 40.0865)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728AD #8EAD28
analogous
#284CAD #4728AD #8A28AD
triadic
#4728AD #AD4728 #28AD47
tetradic
#4728AD #AD284C #8EAD28 #28AD8A
square
#4728AD #AD284C #8EAD28 #28AD8A
split-complementary
#4728AD #AD8A28 #4CAD28
monochromatic
#1E114A #331D7B #4728AD #623FD3 #8B71DE

Accessibility & contrast

On white

9.66
#4728AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4728AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4728AD#FFFFFF#000000##FFFFFF
##4728AD1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B1
Deuteranopia (green-blind)
#0040AB
Tritanopia (blue-blind)
#094E69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4728ad;
/* rgb */ color: rgb(71, 40, 173);
/* oklch */ color: oklch(41.0% 0.195 284.5);
Tailwind
colors: {
  custom: {
    50: '#8666c7',
    500: '#4728ad',
    950: '#000000',
  },
}
SCSS
$custom: #4728ad;
$custom-light: #8666c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4728ad",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 253.985,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.19522,
    "h": 284.5
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#4728AD
secondary
#B0C56C
accent
#E642BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4728AD

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

Preview Lab → · Contrast checker → · Palette generator →

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