#4D2D96#4D2D96

#4D2D96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.162 H 291.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4D2D96
RGBrgb(77, 45, 150)
HSLhsl(258, 54%, 38%)
HSVhsv(258, 70%, 59%)
CMYKcmyk(48.7%, 70%, 0%, 41.2%)
CIE-LABlab(28.53, 40.13, -52.55)
CIE-LCHlch(28.53, 66.12, 307.37°)
OKLaboklab(40.14% 0.0589 -0.1506)
OKLCHoklch(40.14% 0.162 291.4)
XYZxyz(9.5024, 5.6562, 29.4393)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D96 #76962D
analogous
#2D4196 #4D2D96 #812D96
triadic
#4D2D96 #964D2D #2D964D
tetradic
#4D2D96 #962D41 #76962D #2D9681
square
#4D2D96 #962D41 #76962D #2D9681
split-complementary
#4D2D96 #96812D #41962D
monochromatic
#1D1138 #351F67 #4D2D96 #653CC4 #8A6BD3

Accessibility & contrast

On white

9.85
#4D2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D96
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D96#FFFFFF#000000##FFFFFF
##4D2D961.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#36475E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2d96;
/* rgb */ color: rgb(77, 45, 150);
/* oklch */ color: oklch(40.1% 0.162 291.4);
Tailwind
colors: {
  custom: {
    50: '#8668b6',
    500: '#4d2d96',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d96;
$custom-light: #8668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d96",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 258.286,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40142,
    "c": 0.16172,
    "h": 291.4
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#4D2D96
secondary
#A0B965
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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