#4726AC#4726AC

#4726AC is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.196 H 284.9°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4726AC
RGBrgb(71, 38, 172)
HSLhsl(255, 64%, 41%)
HSVhsv(255, 78%, 67%)
CMYKcmyk(58.7%, 77.9%, 0%, 32.5%)
CIE-LABlab(28.65, 49.23, -65.72)
CIE-LCHlch(28.65, 82.11, 306.83°)
OKLaboklab(40.7% 0.0505 -0.1893)
OKLCHoklch(40.7% 0.196 284.9)
XYZxyz(10.7358, 5.7037, 39.5569)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4726AC #8BAC26
analogous
#2648AC #4726AC #8A26AC
triadic
#4726AC #AC4726 #26AC47
tetradic
#4726AC #AC2648 #8BAC26 #26AC8A
square
#4726AC #AC2648 #8BAC26 #26AC8A
split-complementary
#4726AC #AC8A26 #48AC26
monochromatic
#1E1048 #321B7A #4726AC #613BD4 #896EDF

Accessibility & contrast

On white

9.81
#4726AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4726AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4726AC
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4726AC#FFFFFF#000000##FFFFFF
##4726AC1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#0D4D68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4726ac;
/* rgb */ color: rgb(71, 38, 172);
/* oklch */ color: oklch(40.7% 0.196 284.9);
Tailwind
colors: {
  custom: {
    50: '#8665c6',
    500: '#4726ac',
    950: '#000000',
  },
}
SCSS
$custom: #4726ac;
$custom-light: #8665c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4726ac",
  "rgb": {
    "r": 71,
    "g": 38,
    "b": 172
  },
  "hsl": {
    "h": 254.776,
    "s": 63.81,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40703,
    "c": 0.19597,
    "h": 284.9
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#4726AC
secondary
#AEC568
accent
#E741BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4726AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4726AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva