#4D2EB3#4D2EB3

#4D2EB3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.196 H 285.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4D2EB3
RGBrgb(77, 46, 179)
HSLhsl(254, 59%, 44%)
HSVhsv(254, 74%, 70%)
CMYKcmyk(57%, 74.3%, 0%, 29.8%)
CIE-LABlab(31.31, 48.08, -65.51)
CIE-LCHlch(31.31, 81.26, 306.28°)
OKLaboklab(42.92% 0.0519 -0.1886)
OKLCHoklch(42.92% 0.196 285.4)
XYZxyz(12.1718, 6.7857, 43.3075)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EB3 #94B32E
analogous
#2E52B3 #4D2EB3 #902EB3
triadic
#4D2EB3 #B34D2E #2EB34D
tetradic
#4D2EB3 #B32E52 #94B32E #2EB390
square
#4D2EB3 #B32E52 #94B32E #2EB390
split-complementary
#4D2EB3 #B3902E #52B32E
monochromatic
#231552 #382182 #4D2EB3 #6C4DD1 #947EDE

Accessibility & contrast

On white

8.91
#4D2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2EB3
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EB3#FFFFFF#000000##FFFFFF
##4D2EB31.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#1A536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d2eb3;
/* rgb */ color: rgb(77, 46, 179);
/* oklch */ color: oklch(42.9% 0.196 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a6acb',
    500: '#4d2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eb3;
$custom-light: #8a6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eb3",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 253.985,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42918,
    "c": 0.19562,
    "h": 285.4
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#4D2EB3
secondary
#B4C676
accent
#E246BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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