#4731AC#4731AC

#4731AC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.185 H 283.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4731AC
RGBrgb(71, 49, 172)
HSLhsl(251, 56%, 43%)
HSVhsv(251, 72%, 67%)
CMYKcmyk(58.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(30.67, 43.52, -62.40)
CIE-LCHlch(30.67, 76.07, 304.89°)
OKLaboklab(42.13% 0.0424 -0.1797)
OKLCHoklch(42.13% 0.185 283.3)
XYZxyz(11.1409, 6.5141, 39.6920)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4731AC #96AC31
analogous
#3158AC #4731AC #8431AC
triadic
#4731AC #AC4731 #31AC47
tetradic
#4731AC #AC3158 #96AC31 #31AC84
square
#4731AC #AC3158 #96AC31 #31AC84
split-complementary
#4731AC #AC8431 #58AC31
monochromatic
#20164D #33237C #4731AC #644ECC #8E7DDA

Accessibility & contrast

On white

9.12
#4731AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4731AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4731AC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4731AC#FFFFFF#000000##FFFFFF
##4731AC1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#0A526B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4731ac;
/* rgb */ color: rgb(71, 49, 172);
/* oklch */ color: oklch(42.1% 0.185 283.3);
Tailwind
colors: {
  custom: {
    50: '#866bc6',
    500: '#4731ac',
    950: '#000000',
  },
}
SCSS
$custom: #4731ac;
$custom-light: #866bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4731ac",
  "rgb": {
    "r": 71,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 250.732,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42129,
    "c": 0.18464,
    "h": 283.3
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#4731AC
secondary
#B5C376
accent
#DF49C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4731AC

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

Preview Lab → · Contrast checker → · Palette generator →

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