#4728A8#4728A8

#4728A8 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.189 H 285.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4728A8
RGBrgb(71, 40, 168)
HSLhsl(255, 62%, 41%)
HSVhsv(255, 76%, 66%)
CMYKcmyk(57.7%, 76.2%, 0%, 34.1%)
CIE-LABlab(28.60, 47.08, -63.40)
CIE-LCHlch(28.60, 78.97, 306.60°)
OKLaboklab(40.55% 0.0502 -0.1826)
OKLCHoklch(40.55% 0.189 285.4)
XYZxyz(10.4231, 5.6837, 37.5860)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728A8 #89A828
analogous
#2849A8 #4728A8 #8728A8
triadic
#4728A8 #A84728 #28A847
tetradic
#4728A8 #A82849 #89A828 #28A887
square
#4728A8 #A82849 #89A828 #28A887
split-complementary
#4728A8 #A88728 #49A828
monochromatic
#1D1045 #321C77 #4728A8 #603DD1 #896EDC

Accessibility & contrast

On white

9.83
#4728A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4728A8
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4728A8#FFFFFF#000000##FFFFFF
##4728A81.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#154C66
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4728a8;
/* rgb */ color: rgb(71, 40, 168);
/* oklch */ color: oklch(40.5% 0.189 285.4);
Tailwind
colors: {
  custom: {
    50: '#8666c3',
    500: '#4728a8',
    950: '#000000',
  },
}
SCSS
$custom: #4728a8;
$custom-light: #8666c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4728a8",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 254.531,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40547,
    "c": 0.18937,
    "h": 285.4
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4728A8

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

Preview Lab → · Contrast checker → · Palette generator →

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