#4F31AC#4F31AC

#4F31AC is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.184 H 287.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4F31AC
RGBrgb(79, 49, 172)
HSLhsl(255, 56%, 43%)
HSVhsv(255, 72%, 67%)
CMYKcmyk(54.1%, 71.5%, 0%, 32.5%)
CIE-LABlab(31.43, 44.75, -61.13)
CIE-LCHlch(31.43, 75.75, 306.21°)
OKLaboklab(42.85% 0.0539 -0.1757)
OKLCHoklch(42.85% 0.184 287.1)
XYZxyz(11.7669, 6.8368, 39.7213)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31AC #8EAC31
analogous
#3150AC #4F31AC #8C31AC
triadic
#4F31AC #AC4F31 #31AC4F
tetradic
#4F31AC #AC3150 #8EAC31 #31AC8C
square
#4F31AC #AC3150 #8EAC31 #31AC8C
split-complementary
#4F31AC #AC8C31 #50AC31
monochromatic
#23164D #39237C #4F31AC #6D4ECC #947DDA

Accessibility & contrast

On white

8.87
#4F31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4F31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31AC
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31AC#FFFFFF#000000##FFFFFF
##4F31AC1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#29526B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f31ac;
/* rgb */ color: rgb(79, 49, 172);
/* oklch */ color: oklch(42.9% 0.184 287.1);
Tailwind
colors: {
  custom: {
    50: '#8a6cc6',
    500: '#4f31ac',
    950: '#000000',
  },
}
SCSS
$custom: #4f31ac;
$custom-light: #8a6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31ac",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 254.634,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42853,
    "c": 0.18381,
    "h": 287.1
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#4F31AC
secondary
#B0C376
accent
#DF49BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F31AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4F31AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva