#4D2DB4#4D2DB4

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

Color values

HEX#4D2DB4
RGBrgb(77, 45, 180)
HSLhsl(254, 60%, 44%)
HSVhsv(254, 75%, 71%)
CMYKcmyk(57.2%, 75%, 0%, 29.4%)
CIE-LABlab(31.23, 48.89, -66.24)
CIE-LCHlch(31.23, 82.33, 306.43°)
OKLaboklab(42.89% 0.0524 -0.1907)
OKLCHoklch(42.89% 0.198 285.4)
XYZxyz(12.2347, 6.7491, 43.8292)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2DB4 #94B42D
analogous
#2D51B4 #4D2DB4 #912DB4
triadic
#4D2DB4 #B44D2D #2DB44D
tetradic
#4D2DB4 #B42D51 #94B42D #2DB491
square
#4D2DB4 #B42D51 #94B42D #2DB491
split-complementary
#4D2DB4 #B4912D #51B42D
monochromatic
#231552 #382183 #4D2DB4 #6C4CD2 #947DDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D2DB4#FFFFFF#000000##FFFFFF
##4D2DB41.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)
#004DB8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#19536E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d2db4;
/* rgb */ color: rgb(77, 45, 180);
/* oklch */ color: oklch(42.9% 0.198 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a6acc',
    500: '#4d2db4',
    950: '#000000',
  },
}
SCSS
$custom: #4d2db4;
$custom-light: #8a6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2db4",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 254.222,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42886,
    "c": 0.19781,
    "h": 285.4
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#4D2DB4
secondary
#B4C776
accent
#E345BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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