#4F31CC#4F31CC

#4F31CC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.221 H 282.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4F31CC
RGBrgb(79, 49, 204)
HSLhsl(252, 61%, 50%)
HSVhsv(252, 76%, 80%)
CMYKcmyk(61.3%, 76%, 0%, 20%)
CIE-LABlab(34.43, 54.13, -75.08)
CIE-LCHlch(34.43, 92.56, 305.79°)
OKLaboklab(45.88% 0.0464 -0.2165)
OKLCHoklch(45.88% 0.221 282.1)
XYZxyz(15.2184, 8.2174, 57.8992)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31CC #AECC31
analogous
#3160CC #4F31CC #9D31CC
triadic
#4F31CC #CC4F31 #31CC4F
tetradic
#4F31CC #CC3160 #AECC31 #31CC9D
square
#4F31CC #CC3160 #AECC31 #31CC9D
split-complementary
#4F31CC #CC9D31 #60CC31
monochromatic
#291969 #3C259B #4F31CC #7861D9 #A292E5

Accessibility & contrast

On white

7.94
#4F31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4F31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31CC
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31CC#FFFFFF#000000##FFFFFF
##4F31CC1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f31cc;
/* rgb */ color: rgb(79, 49, 204);
/* oklch */ color: oklch(45.9% 0.221 282.1);
Tailwind
colors: {
  custom: {
    50: '#8f6ddd',
    500: '#4f31cc',
    950: '#000000',
  },
}
SCSS
$custom: #4f31cc;
$custom-light: #8f6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31cc",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 251.613,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4588,
    "c": 0.22147,
    "h": 282.1
  },
  "luminance": 0.08219
}

Semantic roles & 50–950 ramp

primary
#4F31CC
secondary
#C2D089
accent
#E443C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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