#4726AB#4726AB

#4726AB is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.195 H 285.1°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4726AB
RGBrgb(71, 38, 171)
HSLhsl(255, 64%, 41%)
HSVhsv(255, 78%, 67%)
CMYKcmyk(58.5%, 77.8%, 0%, 32.9%)
CIE-LABlab(28.55, 48.94, -65.29)
CIE-LCHlch(28.55, 81.59, 306.86°)
OKLaboklab(40.6% 0.0508 -0.1881)
OKLCHoklch(40.6% 0.195 285.1)
XYZxyz(10.6401, 5.6654, 39.0530)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4726AB #8AAB26
analogous
#2647AB #4726AB #8926AB
triadic
#4726AB #AB4726 #26AB47
tetradic
#4726AB #AB2647 #8AAB26 #26AB89
square
#4726AB #AB2647 #8AAB26 #26AB89
split-complementary
#4726AB #AB8926 #47AB26
monochromatic
#1D1047 #321B79 #4726AB #613BD3 #896DDF

Accessibility & contrast

On white

9.84
#4726AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4726AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4726AB
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4726AB#FFFFFF#000000##FFFFFF
##4726AB1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#0F4C68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4726ab;
/* rgb */ color: rgb(71, 38, 171);
/* oklch */ color: oklch(40.6% 0.195 285.1);
Tailwind
colors: {
  custom: {
    50: '#8665c5',
    500: '#4726ab',
    950: '#000000',
  },
}
SCSS
$custom: #4726ab;
$custom-light: #8665c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4726ab",
  "rgb": {
    "r": 71,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 254.887,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40603,
    "c": 0.19481,
    "h": 285.1
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4726AB

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

Preview Lab → · Contrast checker → · Palette generator →

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