#4D31B3#4D31B3

#4D31B3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.192 H 284.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4D31B3
RGBrgb(77, 49, 179)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 73%, 70%)
CMYKcmyk(57%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.87, 46.52, -64.59)
CIE-LCHlch(31.87, 79.60, 305.76°)
OKLaboklab(43.31% 0.0495 -0.1859)
OKLCHoklch(43.31% 0.192 284.9)
XYZxyz(12.2931, 7.0283, 43.3479)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31B3 #97B331
analogous
#3156B3 #4D31B3 #8E31B3
triadic
#4D31B3 #B34D31 #31B34D
tetradic
#4D31B3 #B33156 #97B331 #31B38E
square
#4D31B3 #B33156 #97B331 #31B38E
split-complementary
#4D31B3 #B38E31 #56B331
monochromatic
#241753 #382483 #4D31B3 #6D52D0 #9582DD

Accessibility & contrast

On white

8.73
#4D31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4D31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31B3
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31B3#FFFFFF#000000##FFFFFF
##4D31B31.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#1A546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d31b3;
/* rgb */ color: rgb(77, 49, 179);
/* oklch */ color: oklch(43.3% 0.192 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6ccb',
    500: '#4d31b3',
    950: '#000000',
  },
}
SCSS
$custom: #4d31b3;
$custom-light: #8a6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31b3",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 252.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43312,
    "c": 0.19244,
    "h": 284.9
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#4D31B3
secondary
#B6C67A
accent
#E048BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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