#4D2EB4#4D2EB4

#4D2EB4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.197 H 285.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4D2EB4
RGBrgb(77, 46, 180)
HSLhsl(254, 59%, 44%)
HSVhsv(254, 74%, 71%)
CMYKcmyk(57.2%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.41, 48.38, -65.95)
CIE-LCHlch(31.41, 81.79, 306.26°)
OKLaboklab(43.01% 0.0516 -0.1899)
OKLCHoklch(43.01% 0.197 285.2)
XYZxyz(12.2733, 6.8263, 43.8421)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EB4 #95B42E
analogous
#2E52B4 #4D2EB4 #902EB4
triadic
#4D2EB4 #B44D2E #2EB44D
tetradic
#4D2EB4 #B42E52 #95B42E #2EB490
square
#4D2EB4 #B42E52 #95B42E #2EB490
split-complementary
#4D2EB4 #B4902E #52B42E
monochromatic
#231553 #382283 #4D2EB4 #6C4ED2 #947EDE

Accessibility & contrast

On white

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

On black

2.37
#4D2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4D2EB4#FFFFFF#000000##FFFFFF
##4D2EB41.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#19536F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d2eb4;
/* rgb */ color: rgb(77, 46, 180);
/* oklch */ color: oklch(43.0% 0.197 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a6acc',
    500: '#4d2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eb4;
$custom-light: #8a6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eb4",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 253.881,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43013,
    "c": 0.19679,
    "h": 285.2
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#4D2EB4
secondary
#B4C777
accent
#E245BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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