#4F31C9#4F31C9

#4F31C9 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.218 H 282.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#4F31C9
RGBrgb(79, 49, 201)
HSLhsl(252, 61%, 49%)
HSVhsv(252, 76%, 79%)
CMYKcmyk(60.7%, 75.6%, 0%, 21.2%)
CIE-LABlab(34.14, 53.26, -73.82)
CIE-LCHlch(34.14, 91.02, 305.81°)
OKLaboklab(45.59% 0.0472 -0.2129)
OKLCHoklch(45.59% 0.218 282.5)
XYZxyz(14.8621, 8.0749, 56.0225)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31C9 #ABC931
analogous
#315FC9 #4F31C9 #9B31C9
triadic
#4F31C9 #C94F31 #31C94F
tetradic
#4F31C9 #C9315F #ABC931 #31C99B
square
#4F31C9 #C9315F #ABC931 #31C99B
split-complementary
#4F31C9 #C99B31 #5FC931
monochromatic
#281967 #3C2598 #4F31C9 #775FD8 #A190E4

Accessibility & contrast

On white

8.03
#4F31C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F31C9
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31C9#FFFFFF#000000##FFFFFF
##4F31C91.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#004BC6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f31c9;
/* rgb */ color: rgb(79, 49, 201);
/* oklch */ color: oklch(45.6% 0.218 282.5);
Tailwind
colors: {
  custom: {
    50: '#8f6ddb',
    500: '#4f31c9',
    950: '#000000',
  },
}
SCSS
$custom: #4f31c9;
$custom-light: #8f6ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31c9",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 251.842,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45586,
    "c": 0.21803,
    "h": 282.5
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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