#4D2AAF#4D2AAF

#4D2AAF is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.195 H 286.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4D2AAF
RGBrgb(77, 42, 175)
HSLhsl(256, 61%, 43%)
HSVhsv(256, 76%, 69%)
CMYKcmyk(56%, 76%, 0%, 31.4%)
CIE-LABlab(30.23, 48.94, -64.91)
CIE-LCHlch(30.23, 81.29, 307.01°)
OKLaboklab(42.04% 0.0559 -0.1868)
OKLCHoklch(42.04% 0.195 286.7)
XYZxyz(11.6241, 6.3282, 41.1581)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2AAF #8CAF2A
analogous
#2A4AAF #4D2AAF #8F2AAF
triadic
#4D2AAF #AF4D2A #2AAF4D
tetradic
#4D2AAF #AF2A4A #8CAF2A #2AAF8F
square
#4D2AAF #AF2A4A #8CAF2A #2AAF8F
split-complementary
#4D2AAF #AF8F2A #4AAF2A
monochromatic
#22124C #371E7E #4D2AAF #6944D2 #9175DE

Accessibility & contrast

On white

9.27
#4D2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D2AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2AAF
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2AAF#FFFFFF#000000##FFFFFF
##4D2AAF1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#204F6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2aaf;
/* rgb */ color: rgb(77, 42, 175);
/* oklch */ color: oklch(42.0% 0.195 286.7);
Tailwind
colors: {
  custom: {
    50: '#8a68c8',
    500: '#4d2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #4d2aaf;
$custom-light: #8a68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2aaf",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 255.789,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.19501,
    "h": 286.7
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#4D2AAF
secondary
#AFC66F
accent
#E443BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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