#4728AF#4728AF

#4728AF is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.198 H 284.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4728AF
RGBrgb(71, 40, 175)
HSLhsl(254, 63%, 42%)
HSVhsv(254, 77%, 69%)
CMYKcmyk(59.4%, 77.1%, 0%, 31.4%)
CIE-LABlab(29.29, 49.13, -66.47)
CIE-LCHlch(29.29, 82.66, 306.47°)
OKLaboklab(41.24% 0.0483 -0.1916)
OKLCHoklch(41.24% 0.198 284.2)
XYZxyz(11.0928, 5.9516, 41.1134)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4728AF #90AF28
analogous
#284CAF #4728AF #8B28AF
triadic
#4728AF #AF4728 #28AF47
tetradic
#4728AF #AF284C #90AF28 #28AF8B
square
#4728AF #AF284C #90AF28 #28AF8B
split-complementary
#4728AF #AF8B28 #4CAF28
monochromatic
#1F114B #331D7D #4728AF #6241D4 #8B73DF

Accessibility & contrast

On white

9.59
#4728AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4728AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4728AF
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4728AF#FFFFFF#000000##FFFFFF
##4728AF1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#034F6A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4728af;
/* rgb */ color: rgb(71, 40, 175);
/* oklch */ color: oklch(41.2% 0.198 284.2);
Tailwind
colors: {
  custom: {
    50: '#8766c8',
    500: '#4728af',
    950: '#000000',
  },
}
SCSS
$custom: #4728af;
$custom-light: #8766c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4728af",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 253.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41239,
    "c": 0.19756,
    "h": 284.2
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#4728AF
secondary
#B2C66D
accent
#E642C0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4728AF

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

Preview Lab → · Contrast checker → · Palette generator →

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