#4726A2#4726A2

#4726A2 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.184 H 286.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4726A2
RGBrgb(71, 38, 162)
HSLhsl(256, 62%, 39%)
HSVhsv(256, 77%, 64%)
CMYKcmyk(56.2%, 76.5%, 0%, 36.5%)
CIE-LABlab(27.67, 46.33, -61.31)
CIE-LCHlch(27.67, 76.85, 307.08°)
OKLaboklab(39.72% 0.0533 -0.1765)
OKLCHoklch(39.72% 0.184 286.8)
XYZxyz(9.8113, 5.3339, 34.6880)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4726A2 #81A226
analogous
#2643A2 #4726A2 #8526A2
triadic
#4726A2 #A24726 #26A247
tetradic
#4726A2 #A22643 #81A226 #26A285
square
#4726A2 #A22643 #81A226 #26A285
split-complementary
#4726A2 #A28526 #43A226
monochromatic
#1C0F3F #311A70 #4726A2 #5F35D0 #8667DB

Accessibility & contrast

On white

10.16
#4726A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4726A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4726A2
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4726A2#FFFFFF#000000##FFFFFF
##4726A21.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#1E4963
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4726a2;
/* rgb */ color: rgb(71, 38, 162);
/* oklch */ color: oklch(39.7% 0.184 286.8);
Tailwind
colors: {
  custom: {
    50: '#8564bf',
    500: '#4726a2',
    950: '#000000',
  },
}
SCSS
$custom: #4726a2;
$custom-light: #8564bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4726a2",
  "rgb": {
    "r": 71,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 255.968,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39715,
    "c": 0.18433,
    "h": 286.8
  },
  "luminance": 0.05334
}

Semantic roles & 50–950 ramp

primary
#4726A2
secondary
#A8C163
accent
#E543BA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4726A2

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

Preview Lab → · Contrast checker → · Palette generator →

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