#4728AC#4728AC

#4728AC is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.194 H 284.7°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4728AC
RGBrgb(71, 40, 172)
HSLhsl(254, 62%, 42%)
HSVhsv(254, 77%, 67%)
CMYKcmyk(58.7%, 76.7%, 0%, 32.5%)
CIE-LABlab(28.99, 48.25, -65.16)
CIE-LCHlch(28.99, 81.08, 306.52°)
OKLaboklab(40.94% 0.0491 -0.1877)
OKLCHoklch(40.94% 0.194 284.7)
XYZxyz(10.8014, 5.8351, 39.5788)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728AC #8DAC28
analogous
#284BAC #4728AC #8928AC
triadic
#4728AC #AC4728 #28AC47
tetradic
#4728AC #AC284B #8DAC28 #28AC89
square
#4728AC #AC284B #8DAC28 #28AC89
split-complementary
#4728AC #AC8928 #4BAC28
monochromatic
#1E1149 #331C7A #4728AC #623FD2 #8A71DE

Accessibility & contrast

On white

9.69
#4728AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4728AC#FFFFFF#000000##FFFFFF
##4728AC1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#0040AA
Tritanopia (blue-blind)
#0C4E69
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4728ac;
/* rgb */ color: rgb(71, 40, 172);
/* oklch */ color: oklch(40.9% 0.194 284.7);
Tailwind
colors: {
  custom: {
    50: '#8666c6',
    500: '#4728ac',
    950: '#000000',
  },
}
SCSS
$custom: #4728ac;
$custom-light: #8666c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4728ac",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 254.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40941,
    "c": 0.19406,
    "h": 284.7
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#4728AC
secondary
#B0C56B
accent
#E542BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4728AC

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

Preview Lab → · Contrast checker → · Palette generator →

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