#4F31C5#4F31C5

#4F31C5 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.213 H 283.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4F31C5
RGBrgb(79, 49, 197)
HSLhsl(252, 60%, 48%)
HSVhsv(252, 75%, 77%)
CMYKcmyk(59.9%, 75.1%, 0%, 22.7%)
CIE-LABlab(33.75, 52.09, -72.12)
CIE-LCHlch(33.75, 88.96, 305.84°)
OKLaboklab(45.2% 0.0482 -0.2079)
OKLCHoklch(45.2% 0.213 283.1)
XYZxyz(14.3977, 7.8891, 53.5766)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31C5 #A7C531
analogous
#315DC5 #4F31C5 #9931C5
triadic
#4F31C5 #C54F31 #31C54F
tetradic
#4F31C5 #C5315D #A7C531 #31C599
square
#4F31C5 #C5315D #A7C531 #31C599
split-complementary
#4F31C5 #C59931 #5DC531
monochromatic
#281963 #3B2594 #4F31C5 #755DD7 #9F8EE3

Accessibility & contrast

On white

8.15
#4F31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4F31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31C5
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31C5#FFFFFF#000000##FFFFFF
##4F31C51.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C9
Deuteranopia (green-blind)
#004AC2
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4f31c5;
/* rgb */ color: rgb(79, 49, 197);
/* oklch */ color: oklch(45.2% 0.213 283.1);
Tailwind
colors: {
  custom: {
    50: '#8e6dd8',
    500: '#4f31c5',
    950: '#000000',
  },
}
SCSS
$custom: #4f31c5;
$custom-light: #8e6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31c5",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 252.162,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45198,
    "c": 0.21341,
    "h": 283.1
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#4F31C5
secondary
#BECD85
accent
#E344C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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