#4728AB#4728AB

#4728AB is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.193 H 284.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4728AB
RGBrgb(71, 40, 171)
HSLhsl(254, 62%, 41%)
HSVhsv(254, 77%, 67%)
CMYKcmyk(58.5%, 76.6%, 0%, 32.9%)
CIE-LABlab(28.89, 47.96, -64.72)
CIE-LCHlch(28.89, 80.56, 306.54°)
OKLaboklab(40.84% 0.0494 -0.1865)
OKLCHoklch(40.84% 0.193 284.8)
XYZxyz(10.7058, 5.7968, 39.0749)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728AB #8CAB28
analogous
#284BAB #4728AB #8928AB
triadic
#4728AB #AB4728 #28AB47
tetradic
#4728AB #AB284B #8CAB28 #28AB89
square
#4728AB #AB284B #8CAB28 #28AB89
split-complementary
#4728AB #AB8928 #4BAB28
monochromatic
#1E1148 #321C79 #4728AB #613ED2 #8A70DE

Accessibility & contrast

On white

9.72
#4728AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4728AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4728AB
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4728AB#FFFFFF#000000##FFFFFF
##4728AB1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#0F4D68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4728ab;
/* rgb */ color: rgb(71, 40, 171);
/* oklch */ color: oklch(40.8% 0.193 284.8);
Tailwind
colors: {
  custom: {
    50: '#8666c5',
    500: '#4728ab',
    950: '#000000',
  },
}
SCSS
$custom: #4728ab;
$custom-light: #8666c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4728ab",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 254.198,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40842,
    "c": 0.19289,
    "h": 284.8
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#4728AB
secondary
#AFC46A
accent
#E543BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4728AB

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

Preview Lab → · Contrast checker → · Palette generator →

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