#4728A2#4728A2

#4728A2 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.182 H 286.5°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4728A2
RGBrgb(71, 40, 162)
HSLhsl(255, 60%, 40%)
HSVhsv(255, 75%, 64%)
CMYKcmyk(56.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.02, 45.32, -60.73)
CIE-LCHlch(28.02, 75.78, 306.74°)
OKLaboklab(39.97% 0.0518 -0.1748)
OKLCHoklch(39.97% 0.182 286.5)
XYZxyz(9.8770, 5.4653, 34.7099)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728A2 #83A228
analogous
#2846A2 #4728A2 #8428A2
triadic
#4728A2 #A24728 #28A247
tetradic
#4728A2 #A22846 #83A228 #28A284
square
#4728A2 #A22846 #83A228 #28A284
split-complementary
#4728A2 #A28428 #46A228
monochromatic
#1C1040 #311C71 #4728A2 #5F39CE #876ADA

Accessibility & contrast

On white

10.03
#4728A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4728A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4728A2
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4728A2#FFFFFF#000000##FFFFFF
##4728A21.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#1E4A63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4728a2;
/* rgb */ color: rgb(71, 40, 162);
/* oklch */ color: oklch(40.0% 0.182 286.5);
Tailwind
colors: {
  custom: {
    50: '#8565bf',
    500: '#4728a2',
    950: '#000000',
  },
}
SCSS
$custom: #4728a2;
$custom-light: #8565bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4728a2",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 255.246,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39965,
    "c": 0.18227,
    "h": 286.5
  },
  "luminance": 0.05466
}

Semantic roles & 50–950 ramp

primary
#4728A2
secondary
#A9C165
accent
#E444BB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4728A2

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

Preview Lab → · Contrast checker → · Palette generator →

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