#4D31A2#4D31A2

#4D31A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.172 H 288.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4D31A2
RGBrgb(77, 49, 162)
HSLhsl(255, 54%, 41%)
HSVhsv(255, 70%, 64%)
CMYKcmyk(52.5%, 69.8%, 0%, 36.5%)
CIE-LABlab(30.36, 41.45, -56.87)
CIE-LCHlch(30.36, 70.37, 306.08°)
OKLaboklab(41.77% 0.0529 -0.1633)
OKLCHoklch(41.77% 0.172 288)
XYZxyz(10.6786, 6.3825, 34.8447)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31A2 #86A231
analogous
#314EA2 #4D31A2 #8631A2
triadic
#4D31A2 #A24D31 #31A24D
tetradic
#4D31A2 #A2314E #86A231 #31A286
square
#4D31A2 #A2314E #86A231 #31A286
split-complementary
#4D31A2 #A28631 #4EA231
monochromatic
#201544 #372373 #4D31A2 #6848C8 #8F77D6

Accessibility & contrast

On white

9.22
#4D31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31A2
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31A2#FFFFFF#000000##FFFFFF
##4D31A21.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#2D4E65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d31a2;
/* rgb */ color: rgb(77, 49, 162);
/* oklch */ color: oklch(41.8% 0.172 288.0);
Tailwind
colors: {
  custom: {
    50: '#876bbe',
    500: '#4d31a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d31a2;
$custom-light: #876bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31a2",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 254.867,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41769,
    "c": 0.17167,
    "h": 288
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#4D31A2
secondary
#ABBE71
accent
#DD4BB9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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