#4D2AB6#4D2AB6

#4D2AB6 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.203 H 285.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4D2AB6
RGBrgb(77, 42, 182)
HSLhsl(255, 63%, 44%)
HSVhsv(255, 77%, 71%)
CMYKcmyk(57.7%, 76.9%, 0%, 28.6%)
CIE-LABlab(30.90, 50.94, -67.97)
CIE-LCHlch(30.90, 84.94, 306.85°)
OKLaboklab(42.72% 0.054 -0.1958)
OKLCHoklch(42.72% 0.203 285.4)
XYZxyz(12.3295, 6.6104, 44.8731)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2AB6 #93B62A
analogous
#2A4DB6 #4D2AB6 #932AB6
triadic
#4D2AB6 #B64D2A #2AB64D
tetradic
#4D2AB6 #B62A4D #93B62A #2AB693
square
#4D2AB6 #B62A4D #93B62A #2AB693
split-complementary
#4D2AB6 #B6932A #4DB62A
monochromatic
#231353 #381F84 #4D2AB6 #6B48D5 #947AE0

Accessibility & contrast

On white

9.04
#4D2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4D2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2AB6
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2AB6#FFFFFF#000000##FFFFFF
##4D2AB61.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#16526F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d2ab6;
/* rgb */ color: rgb(77, 42, 182);
/* oklch */ color: oklch(42.7% 0.203 285.4);
Tailwind
colors: {
  custom: {
    50: '#8b68cd',
    500: '#4d2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ab6;
$custom-light: #8b68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ab6",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 255,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.20308,
    "h": 285.4
  },
  "luminance": 0.06611
}

Semantic roles & 50–950 ramp

primary
#4D2AB6
secondary
#B3C873
accent
#E642BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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