#4D2FA1#4D2FA1

#4D2FA1 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.173 H 288.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA1
RGBrgb(77, 47, 161)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 63%)
CMYKcmyk(52.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(29.87, 42.26, -57.06)
CIE-LCHlch(29.87, 71.01, 306.52°)
OKLaboklab(41.39% 0.055 -0.1639)
OKLCHoklch(41.39% 0.173 288.5)
XYZxyz(10.5082, 6.1835, 34.3512)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA1 #83A12F
analogous
#2F4AA1 #4D2FA1 #862FA1
triadic
#4D2FA1 #A14D2F #2FA14D
tetradic
#4D2FA1 #A12F4A #83A12F #2FA186
square
#4D2FA1 #A12F4A #83A12F #2FA186
split-complementary
#4D2FA1 #A1862F #4AA12F
monochromatic
#201342 #362172 #4D2FA1 #6745C9 #8E74D6

Accessibility & contrast

On white

9.39
#4D2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2FA1
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA1#FFFFFF#000000##FFFFFF
##4D2FA11.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#2E4D64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2fa1;
/* rgb */ color: rgb(77, 47, 161);
/* oklch */ color: oklch(41.4% 0.173 288.5);
Tailwind
colors: {
  custom: {
    50: '#876abe',
    500: '#4d2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa1;
$custom-light: #876abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa1",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 255.789,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41394,
    "c": 0.17284,
    "h": 288.5
  },
  "luminance": 0.06184
}

Semantic roles & 50–950 ramp

primary
#4D2FA1
secondary
#A9BE6E
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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