#4728AE#4728AE

#4728AE is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.196 H 284.3°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4728AE
RGBrgb(71, 40, 174)
HSLhsl(254, 63%, 42%)
HSVhsv(254, 77%, 68%)
CMYKcmyk(59.2%, 77%, 0%, 31.8%)
CIE-LABlab(29.19, 48.84, -66.04)
CIE-LCHlch(29.19, 82.13, 306.49°)
OKLaboklab(41.14% 0.0486 -0.1903)
OKLCHoklch(41.14% 0.196 284.3)
XYZxyz(10.9950, 5.9125, 40.5980)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728AE #8FAE28
analogous
#284CAE #4728AE #8A28AE
triadic
#4728AE #AE4728 #28AE47
tetradic
#4728AE #AE284C #8FAE28 #28AE8A
square
#4728AE #AE284C #8FAE28 #28AE8A
split-complementary
#4728AE #AE8A28 #4CAE28
monochromatic
#1E114A #331D7C #4728AE #6240D3 #8B72DF

Accessibility & contrast

On white

9.62
#4728AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4728AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4728AE#FFFFFF#000000##FFFFFF
##4728AE1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#064F6A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4728ae;
/* rgb */ color: rgb(71, 40, 174);
/* oklch */ color: oklch(41.1% 0.196 284.3);
Tailwind
colors: {
  custom: {
    50: '#8766c7',
    500: '#4728ae',
    950: '#000000',
  },
}
SCSS
$custom: #4728ae;
$custom-light: #8766c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4728ae",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 253.881,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41139,
    "c": 0.19639,
    "h": 284.3
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

primary
#4728AE
secondary
#B1C66C
accent
#E642C0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4728AE

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

Preview Lab → · Contrast checker → · Palette generator →

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