#4D2EB7#4D2EB7

#4D2EB7 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.3% C 0.200 H 284.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4D2EB7
RGBrgb(77, 46, 183)
HSLhsl(254, 60%, 45%)
HSVhsv(254, 75%, 72%)
CMYKcmyk(57.9%, 74.9%, 0%, 28.2%)
CIE-LABlab(31.69, 49.25, -67.26)
CIE-LCHlch(31.69, 83.37, 306.21°)
OKLaboklab(43.3% 0.0509 -0.1937)
OKLCHoklch(43.3% 0.2 284.7)
XYZxyz(12.5822, 6.9499, 45.4690)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EB7 #98B72E
analogous
#2E53B7 #4D2EB7 #922EB7
triadic
#4D2EB7 #B74D2E #2EB74D
tetradic
#4D2EB7 #B72E53 #98B72E #2EB792
square
#4D2EB7 #B72E53 #98B72E #2EB792
split-complementary
#4D2EB7 #B7922E #53B72E
monochromatic
#241555 #382286 #4D2EB7 #6D4FD3 #9680DF

Accessibility & contrast

On white

8.79
#4D2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4D2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EB7
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EB7#FFFFFF#000000##FFFFFF
##4D2EB71.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#135470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d2eb7;
/* rgb */ color: rgb(77, 46, 183);
/* oklch */ color: oklch(43.3% 0.200 284.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ace',
    500: '#4d2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eb7;
$custom-light: #8b6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eb7",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 253.577,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43299,
    "c": 0.20031,
    "h": 284.7
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#4D2EB7
secondary
#B6C879
accent
#E345BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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