#4D2FA2#4D2FA2

#4D2FA2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.174 H 288.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA2
RGBrgb(77, 47, 162)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(52.5%, 71%, 0%, 36.5%)
CIE-LABlab(29.96, 42.55, -57.53)
CIE-LCHlch(29.96, 71.55, 306.49°)
OKLaboklab(41.48% 0.0548 -0.1652)
OKLCHoklch(41.48% 0.174 288.3)
XYZxyz(10.5968, 6.2189, 34.8174)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA2 #84A22F
analogous
#2F4AA2 #4D2FA2 #862FA2
triadic
#4D2FA2 #A24D2F #2FA24D
tetradic
#4D2FA2 #A22F4A #84A22F #2FA286
square
#4D2FA2 #A22F4A #84A22F #2FA286
split-complementary
#4D2FA2 #A2862F #4AA22F
monochromatic
#201343 #362173 #4D2FA2 #6845C9 #8E75D7

Accessibility & contrast

On white

9.36
#4D2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA2
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA2#FFFFFF#000000##FFFFFF
##4D2FA21.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#2D4D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2fa2;
/* rgb */ color: rgb(77, 47, 162);
/* oklch */ color: oklch(41.5% 0.174 288.3);
Tailwind
colors: {
  custom: {
    50: '#876abe',
    500: '#4d2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa2;
$custom-light: #876abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa2",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 255.652,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41484,
    "c": 0.17406,
    "h": 288.3
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#4D2FA2
secondary
#AABF6E
accent
#DE49B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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