#4D2ABA#4D2ABA

#4D2ABA is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.1% C 0.208 H 284.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4D2ABA
RGBrgb(77, 42, 186)
HSLhsl(255, 63%, 45%)
HSVhsv(255, 77%, 73%)
CMYKcmyk(58.6%, 77.4%, 0%, 27.1%)
CIE-LABlab(31.30, 52.08, -69.69)
CIE-LCHlch(31.30, 87.00, 306.77°)
OKLaboklab(43.11% 0.0529 -0.2008)
OKLCHoklch(43.11% 0.208 284.7)
XYZxyz(12.7488, 6.7781, 47.0814)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2ABA #97BA2A
analogous
#2A4FBA #4D2ABA #952ABA
triadic
#4D2ABA #BA4D2A #2ABA4D
tetradic
#4D2ABA #BA2A4F #97BA2A #2ABA95
square
#4D2ABA #BA2A4F #97BA2A #2ABA95
split-complementary
#4D2ABA #BA952A #4FBA2A
monochromatic
#241356 #381F88 #4D2ABA #6D4BD6 #957DE2

Accessibility & contrast

On white

8.91
#4D2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4D2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2ABA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2ABA#FFFFFF#000000##FFFFFF
##4D2ABA1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#0C5471
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d2aba;
/* rgb */ color: rgb(77, 42, 186);
/* oklch */ color: oklch(43.1% 0.208 284.7);
Tailwind
colors: {
  custom: {
    50: '#8c68d0',
    500: '#4d2aba',
    950: '#000000',
  },
}
SCSS
$custom: #4d2aba;
$custom-light: #8c68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2aba",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 254.583,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43109,
    "c": 0.20765,
    "h": 284.7
  },
  "luminance": 0.06779
}

Semantic roles & 50–950 ramp

primary
#4D2ABA
secondary
#B6CA76
accent
#E642BE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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