#4D31C9#4D31C9

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

Color values

HEX#4D31C9
RGBrgb(77, 49, 201)
HSLhsl(251, 61%, 49%)
HSVhsv(251, 76%, 79%)
CMYKcmyk(61.7%, 75.6%, 0%, 21.2%)
CIE-LABlab(33.96, 53.02, -74.11)
CIE-LCHlch(33.96, 91.12, 305.58°)
OKLaboklab(45.42% 0.0444 -0.2138)
OKLCHoklch(45.42% 0.218 281.7)
XYZxyz(14.6982, 7.9904, 56.0148)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C9 #ADC931
analogous
#3161C9 #4D31C9 #9931C9
triadic
#4D31C9 #C94D31 #31C94D
tetradic
#4D31C9 #C93161 #ADC931 #31C999
square
#4D31C9 #C93161 #ADC931 #31C999
split-complementary
#4D31C9 #C99931 #61C931
monochromatic
#271967 #3A2598 #4D31C9 #755FD8 #A090E4

Accessibility & contrast

On white

8.08
#4D31C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D31C9
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C9#FFFFFF#000000##FFFFFF
##4D31C91.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d31c9;
/* rgb */ color: rgb(77, 49, 201);
/* oklch */ color: oklch(45.4% 0.218 281.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ddb',
    500: '#4d31c9',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c9;
$custom-light: #8e6ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c9",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 251.053,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.21833,
    "h": 281.7
  },
  "luminance": 0.07991
}

Semantic roles & 50–950 ramp

primary
#4D31C9
secondary
#C2CF87
accent
#E444C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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