#4F31C7#4F31C7

#4F31C7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.216 H 282.8°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#4F31C7
RGBrgb(79, 49, 199)
HSLhsl(252, 60%, 49%)
HSVhsv(252, 75%, 78%)
CMYKcmyk(60.3%, 75.4%, 0%, 22%)
CIE-LABlab(33.94, 52.68, -72.97)
CIE-LCHlch(33.94, 90.00, 305.82°)
OKLaboklab(45.39% 0.0477 -0.2104)
OKLCHoklch(45.39% 0.216 282.8)
XYZxyz(14.6284, 7.9814, 54.7915)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31C7 #A9C731
analogous
#315EC7 #4F31C7 #9A31C7
triadic
#4F31C7 #C74F31 #31C74F
tetradic
#4F31C7 #C7315E #A9C731 #31C79A
square
#4F31C7 #C7315E #A9C731 #31C79A
split-complementary
#4F31C7 #C79A31 #5EC731
monochromatic
#281965 #3C2596 #4F31C7 #765ED7 #A08FE3

Accessibility & contrast

On white

8.09
#4F31C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4F31C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31C7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31C7#FFFFFF#000000##FFFFFF
##4F31C71.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f31c7;
/* rgb */ color: rgb(79, 49, 199);
/* oklch */ color: oklch(45.4% 0.216 282.8);
Tailwind
colors: {
  custom: {
    50: '#8e6dd9',
    500: '#4f31c7',
    950: '#000000',
  },
}
SCSS
$custom: #4f31c7;
$custom-light: #8e6dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31c7",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 252,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45392,
    "c": 0.21572,
    "h": 282.8
  },
  "luminance": 0.07982
}

Semantic roles & 50–950 ramp

primary
#4F31C7
secondary
#C0CE86
accent
#E444C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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