#4F31AE#4F31AE

#4F31AE is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.186 H 286.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4F31AE
RGBrgb(79, 49, 174)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 72%, 68%)
CMYKcmyk(54.6%, 71.8%, 0%, 31.8%)
CIE-LABlab(31.61, 45.34, -62.03)
CIE-LCHlch(31.61, 76.83, 306.16°)
OKLaboklab(43.04% 0.0535 -0.1784)
OKLCHoklch(43.04% 0.186 286.7)
XYZxyz(11.9605, 6.9142, 40.7405)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31AE #90AE31
analogous
#3151AE #4F31AE #8D31AE
triadic
#4F31AE #AE4F31 #31AE4F
tetradic
#4F31AE #AE3151 #90AE31 #31AE8D
square
#4F31AE #AE3151 #90AE31 #31AE8D
split-complementary
#4F31AE #AE8D31 #51AE31
monochromatic
#24164E #39247E #4F31AE #6D4FCD #957FDB

Accessibility & contrast

On white

8.81
#4F31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4F31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31AE
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31AE#FFFFFF#000000##FFFFFF
##4F31AE1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#27526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f31ae;
/* rgb */ color: rgb(79, 49, 174);
/* oklch */ color: oklch(43.0% 0.186 286.7);
Tailwind
colors: {
  custom: {
    50: '#8a6cc7',
    500: '#4f31ae',
    950: '#000000',
  },
}
SCSS
$custom: #4f31ae;
$custom-light: #8a6cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31ae",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 254.4,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43035,
    "c": 0.18623,
    "h": 286.7
  },
  "luminance": 0.06915
}

Semantic roles & 50–950 ramp

primary
#4F31AE
secondary
#B1C477
accent
#DF48BB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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