#4D2D95#4D2D95

#4D2D95 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.160 H 291.6°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4D2D95
RGBrgb(77, 45, 149)
HSLhsl(258, 54%, 38%)
HSVhsv(258, 70%, 58%)
CMYKcmyk(48.3%, 69.8%, 0%, 41.6%)
CIE-LABlab(28.44, 39.84, -52.08)
CIE-LCHlch(28.44, 65.57, 307.42°)
OKLaboklab(40.06% 0.0591 -0.1492)
OKLCHoklch(40.06% 0.16 291.6)
XYZxyz(9.4222, 5.6241, 29.0171)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D95 #75952D
analogous
#2D4195 #4D2D95 #812D95
triadic
#4D2D95 #954D2D #2D954D
tetradic
#4D2D95 #952D41 #75952D #2D9581
square
#4D2D95 #952D41 #75952D #2D9581
split-complementary
#4D2D95 #95812D #41952D
monochromatic
#1C1137 #351F66 #4D2D95 #653BC4 #8A6AD2

Accessibility & contrast

On white

9.88
#4D2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D95
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D95#FFFFFF#000000##FFFFFF
##4D2D951.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#36475D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2d95;
/* rgb */ color: rgb(77, 45, 149);
/* oklch */ color: oklch(40.1% 0.160 291.6);
Tailwind
colors: {
  custom: {
    50: '#8668b5',
    500: '#4d2d95',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d95;
$custom-light: #8668b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d95",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 258.462,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.16049,
    "h": 291.6
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#4D2D95
secondary
#9FB965
accent
#DD4BB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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