#4728A9#4728A9

#4728A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.191 H 285.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4728A9
RGBrgb(71, 40, 169)
HSLhsl(254, 62%, 41%)
HSVhsv(254, 76%, 66%)
CMYKcmyk(58%, 76.3%, 0%, 33.7%)
CIE-LABlab(28.70, 47.38, -63.84)
CIE-LCHlch(28.70, 79.50, 306.58°)
OKLaboklab(40.64% 0.0499 -0.1839)
OKLCHoklch(40.64% 0.191 285.2)
XYZxyz(10.5166, 5.7211, 38.0785)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728A9 #8AA928
analogous
#2849A9 #4728A9 #8728A9
triadic
#4728A9 #A94728 #28A947
tetradic
#4728A9 #A92849 #8AA928 #28A987
square
#4728A9 #A92849 #8AA928 #28A987
split-complementary
#4728A9 #A98728 #49A928
monochromatic
#1D1146 #321C78 #4728A9 #613DD1 #896FDD

Accessibility & contrast

On white

9.79
#4728A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4728A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4728A9#FFFFFF#000000##FFFFFF
##4728A91.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#134D67
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4728a9;
/* rgb */ color: rgb(71, 40, 169);
/* oklch */ color: oklch(40.6% 0.191 285.2);
Tailwind
colors: {
  custom: {
    50: '#8666c4',
    500: '#4728a9',
    950: '#000000',
  },
}
SCSS
$custom: #4728a9;
$custom-light: #8666c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4728a9",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 254.419,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40645,
    "c": 0.19054,
    "h": 285.2
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4728A9

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

Preview Lab → · Contrast checker → · Palette generator →

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