#4727AB#4727AB

#4727AB is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.194 H 285.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4727AB
RGBrgb(71, 39, 171)
HSLhsl(255, 63%, 41%)
HSVhsv(255, 77%, 67%)
CMYKcmyk(58.5%, 77.2%, 0%, 32.9%)
CIE-LABlab(28.72, 48.46, -65.01)
CIE-LCHlch(28.72, 81.08, 306.70°)
OKLaboklab(40.72% 0.0501 -0.1873)
OKLCHoklch(40.72% 0.194 285)
XYZxyz(10.6725, 5.7302, 39.0639)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4727AB #8BAB27
analogous
#2749AB #4727AB #8927AB
triadic
#4727AB #AB4727 #27AB47
tetradic
#4727AB #AB2749 #8BAB27 #27AB89
square
#4727AB #AB2749 #8BAB27 #27AB89
split-complementary
#4727AB #AB8927 #49AB27
monochromatic
#1E1047 #321C79 #4727AB #613DD3 #896EDE

Accessibility & contrast

On white

9.78
#4727AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4727AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4727AB
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4727AB#FFFFFF#000000##FFFFFF
##4727AB1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4727ab;
/* rgb */ color: rgb(71, 39, 171);
/* oklch */ color: oklch(40.7% 0.194 285.0);
Tailwind
colors: {
  custom: {
    50: '#8665c5',
    500: '#4727ab',
    950: '#000000',
  },
}
SCSS
$custom: #4727ab;
$custom-light: #8665c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4727ab",
  "rgb": {
    "r": 71,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 254.545,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40722,
    "c": 0.19387,
    "h": 285
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#4727AB
secondary
#AEC569
accent
#E642BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4727AB

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

Preview Lab → · Contrast checker → · Palette generator →

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