#4727AD#4727AD

#4727AD is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.196 H 284.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4727AD
RGBrgb(71, 39, 173)
HSLhsl(254, 63%, 42%)
HSVhsv(254, 77%, 68%)
CMYKcmyk(59%, 77.5%, 0%, 32.2%)
CIE-LABlab(28.92, 49.04, -65.88)
CIE-LCHlch(28.92, 82.13, 306.66°)
OKLaboklab(40.92% 0.0495 -0.1898)
OKLCHoklch(40.92% 0.196 284.6)
XYZxyz(10.8646, 5.8071, 40.0754)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4727AD #8DAD27
analogous
#274AAD #4727AD #8A27AD
triadic
#4727AD #AD4727 #27AD47
tetradic
#4727AD #AD274A #8DAD27 #27AD8A
square
#4727AD #AD274A #8DAD27 #27AD8A
split-complementary
#4727AD #AD8A27 #4AAD27
monochromatic
#1E1049 #331C7B #4727AD #623ED3 #8A70DF

Accessibility & contrast

On white

9.72
#4727AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4727AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4727AD
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4727AD#FFFFFF#000000##FFFFFF
##4727AD1.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)
#0048B1
Deuteranopia (green-blind)
#0040AB
Tritanopia (blue-blind)
#094E69
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4727ad;
/* rgb */ color: rgb(71, 39, 173);
/* oklch */ color: oklch(40.9% 0.196 284.6);
Tailwind
colors: {
  custom: {
    50: '#8766c7',
    500: '#4727ad',
    950: '#000000',
  },
}
SCSS
$custom: #4727ad;
$custom-light: #8766c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4727ad",
  "rgb": {
    "r": 71,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 254.328,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40921,
    "c": 0.19619,
    "h": 284.6
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#4727AD
secondary
#B0C66A
accent
#E642BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4727AD

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

Preview Lab → · Contrast checker → · Palette generator →

#4727AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva