#4F31CA#4F31CA

#4F31CA is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.219 H 282.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#4F31CA
RGBrgb(79, 49, 202)
HSLhsl(252, 61%, 49%)
HSVhsv(252, 76%, 79%)
CMYKcmyk(60.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(34.24, 53.55, -74.24)
CIE-LCHlch(34.24, 91.54, 305.80°)
OKLaboklab(45.68% 0.0469 -0.2141)
OKLCHoklch(45.68% 0.219 282.4)
XYZxyz(14.9801, 8.1221, 56.6440)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31CA #ACCA31
analogous
#315FCA #4F31CA #9C31CA
triadic
#4F31CA #CA4F31 #31CA4F
tetradic
#4F31CA #CA315F #ACCA31 #31CA9C
square
#4F31CA #CA315F #ACCA31 #31CA9C
split-complementary
#4F31CA #CA9C31 #5FCA31
monochromatic
#281967 #3C2599 #4F31CA #7760D8 #A191E4

Accessibility & contrast

On white

8.00
#4F31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4F31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31CA
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31CA#FFFFFF#000000##FFFFFF
##4F31CA1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CE
Deuteranopia (green-blind)
#004BC7
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f31ca;
/* rgb */ color: rgb(79, 49, 202);
/* oklch */ color: oklch(45.7% 0.219 282.4);
Tailwind
colors: {
  custom: {
    50: '#8f6ddb',
    500: '#4f31ca',
    950: '#000000',
  },
}
SCSS
$custom: #4f31ca;
$custom-light: #8f6ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31ca",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 251.765,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45684,
    "c": 0.21918,
    "h": 282.4
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#4F31CA
secondary
#C1CF88
accent
#E444C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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