#4D2ABB#4D2ABB

#4D2ABB is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.209 H 284.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4D2ABB
RGBrgb(77, 42, 187)
HSLhsl(254, 63%, 45%)
HSVhsv(254, 78%, 73%)
CMYKcmyk(58.8%, 77.5%, 0%, 26.7%)
CIE-LABlab(31.40, 52.37, -70.12)
CIE-LCHlch(31.40, 87.52, 306.75°)
OKLaboklab(43.21% 0.0526 -0.2021)
OKLCHoklch(43.21% 0.209 284.6)
XYZxyz(12.8554, 6.8208, 47.6432)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2ABB #98BB2A
analogous
#2A4FBB #4D2ABB #962ABB
triadic
#4D2ABB #BB4D2A #2ABB4D
tetradic
#4D2ABB #BB2A4F #98BB2A #2ABB96
square
#4D2ABB #BB2A4F #98BB2A #2ABB96
split-complementary
#4D2ABB #BB962A #4FBB2A
monochromatic
#241457 #381F89 #4D2ABB #6D4CD7 #967DE2

Accessibility & contrast

On white

8.88
#4D2ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2ABB
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2ABB#FFFFFF#000000##FFFFFF
##4D2ABB1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0045B8
Tritanopia (blue-blind)
#085472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d2abb;
/* rgb */ color: rgb(77, 42, 187);
/* oklch */ color: oklch(43.2% 0.209 284.6);
Tailwind
colors: {
  custom: {
    50: '#8c68d1',
    500: '#4d2abb',
    950: '#000000',
  },
}
SCSS
$custom: #4d2abb;
$custom-light: #8c68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2abb",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 254.483,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43208,
    "c": 0.20879,
    "h": 284.6
  },
  "luminance": 0.06822
}

Semantic roles & 50–950 ramp

primary
#4D2ABB
secondary
#B6CA76
accent
#E641BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4D2ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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