#4D2EB2#4D2EB2

#4D2EB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.194 H 285.5°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4D2EB2
RGBrgb(77, 46, 178)
HSLhsl(254, 59%, 44%)
HSVhsv(254, 74%, 70%)
CMYKcmyk(56.7%, 74.2%, 0%, 30.2%)
CIE-LABlab(31.22, 47.79, -65.07)
CIE-LCHlch(31.22, 80.73, 306.30°)
OKLaboklab(42.82% 0.0521 -0.1873)
OKLCHoklch(42.82% 0.194 285.5)
XYZxyz(12.0710, 6.7454, 42.7768)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EB2 #93B22E
analogous
#2E51B2 #4D2EB2 #8F2EB2
triadic
#4D2EB2 #B24D2E #2EB24D
tetradic
#4D2EB2 #B22E51 #93B22E #2EB28F
square
#4D2EB2 #B22E51 #93B22E #2EB28F
split-complementary
#4D2EB2 #B28F2E #51B22E
monochromatic
#231551 #382181 #4D2EB2 #6B4CD1 #947DDD

Accessibility & contrast

On white

8.94
#4D2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4D2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EB2
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EB2#FFFFFF#000000##FFFFFF
##4D2EB21.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#1C526E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d2eb2;
/* rgb */ color: rgb(77, 46, 178);
/* oklch */ color: oklch(42.8% 0.194 285.5);
Tailwind
colors: {
  custom: {
    50: '#8a6aca',
    500: '#4d2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eb2;
$custom-light: #8a6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eb2",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 254.091,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42823,
    "c": 0.19443,
    "h": 285.5
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

primary
#4D2EB2
secondary
#B3C676
accent
#E246BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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