#4D2AB1#4D2AB1

#4D2AB1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.197 H 286.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4D2AB1
RGBrgb(77, 42, 177)
HSLhsl(256, 62%, 43%)
HSVhsv(256, 76%, 69%)
CMYKcmyk(56.5%, 76.3%, 0%, 30.6%)
CIE-LABlab(30.42, 49.51, -65.79)
CIE-LCHlch(30.42, 82.34, 306.96°)
OKLaboklab(42.23% 0.0554 -0.1894)
OKLCHoklch(42.23% 0.197 286.3)
XYZxyz(11.8220, 6.4074, 42.2003)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2AB1 #8EB12A
analogous
#2A4AB1 #4D2AB1 #912AB1
triadic
#4D2AB1 #B14D2A #2AB14D
tetradic
#4D2AB1 #B12A4A #8EB12A #2AB191
square
#4D2AB1 #B12A4A #8EB12A #2AB191
split-complementary
#4D2AB1 #B1912A #4AB12A
monochromatic
#22134E #371E80 #4D2AB1 #6A45D3 #9277DF

Accessibility & contrast

On white

9.20
#4D2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2AB1
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2AB1#FFFFFF#000000##FFFFFF
##4D2AB11.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#1E506C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2ab1;
/* rgb */ color: rgb(77, 42, 177);
/* oklch */ color: oklch(42.2% 0.197 286.3);
Tailwind
colors: {
  custom: {
    50: '#8a68c9',
    500: '#4d2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ab1;
$custom-light: #8a68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ab1",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 255.556,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4223,
    "c": 0.19732,
    "h": 286.3
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#4D2AB1
secondary
#B0C670
accent
#E543BB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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