#4D31C8#4D31C8

#4D31C8 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.217 H 281.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4D31C8
RGBrgb(77, 49, 200)
HSLhsl(251, 61%, 49%)
HSVhsv(251, 76%, 78%)
CMYKcmyk(61.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(33.86, 52.73, -73.69)
CIE-LCHlch(33.86, 90.61, 305.58°)
OKLaboklab(45.32% 0.0446 -0.2125)
OKLCHoklch(45.32% 0.217 281.9)
XYZxyz(14.5809, 7.9435, 55.3973)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C8 #ACC831
analogous
#3161C8 #4D31C8 #9931C8
triadic
#4D31C8 #C84D31 #31C84D
tetradic
#4D31C8 #C83161 #ACC831 #31C899
square
#4D31C8 #C83161 #ACC831 #31C899
split-complementary
#4D31C8 #C89931 #61C831
monochromatic
#271966 #3A2597 #4D31C8 #755FD8 #9F90E4

Accessibility & contrast

On white

8.11
#4D31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4D31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31C8
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C8#FFFFFF#000000##FFFFFF
##4D31C81.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d31c8;
/* rgb */ color: rgb(77, 49, 200);
/* oklch */ color: oklch(45.3% 0.217 281.9);
Tailwind
colors: {
  custom: {
    50: '#8e6dda',
    500: '#4d31c8',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c8;
$custom-light: #8e6dda;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c8",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 251.126,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.21717,
    "h": 281.9
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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