#4D31B5#4D31B5

#4D31B5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.195 H 284.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4D31B5
RGBrgb(77, 49, 181)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(57.5%, 72.9%, 0%, 29%)
CIE-LABlab(32.06, 47.11, -65.48)
CIE-LCHlch(32.06, 80.67, 305.73°)
OKLaboklab(43.5% 0.0491 -0.1885)
OKLCHoklch(43.5% 0.195 284.6)
XYZxyz(12.4968, 7.1098, 44.4209)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31B5 #99B531
analogous
#3157B5 #4D31B5 #8F31B5
triadic
#4D31B5 #B54D31 #31B54D
tetradic
#4D31B5 #B53157 #99B531 #31B58F
square
#4D31B5 #B53157 #99B531 #31B58F
split-complementary
#4D31B5 #B58F31 #57B531
monochromatic
#241755 #392485 #4D31B5 #6D53D0 #9683DD

Accessibility & contrast

On white

8.67
#4D31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4D31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31B5
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31B5#FFFFFF#000000##FFFFFF
##4D31B51.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#165570
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d31b5;
/* rgb */ color: rgb(77, 49, 181);
/* oklch */ color: oklch(43.5% 0.195 284.6);
Tailwind
colors: {
  custom: {
    50: '#8a6ccc',
    500: '#4d31b5',
    950: '#000000',
  },
}
SCSS
$custom: #4d31b5;
$custom-light: #8a6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31b5",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 252.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43499,
    "c": 0.19483,
    "h": 284.6
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#4D31B5
secondary
#B7C77B
accent
#E147C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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