#4D2C97#4D2C97

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

Color values

HEX#4D2C97
RGBrgb(77, 44, 151)
HSLhsl(259, 55%, 38%)
HSVhsv(259, 71%, 59%)
CMYKcmyk(49%, 70.9%, 0%, 40.8%)
CIE-LABlab(28.41, 40.97, -53.35)
CIE-LCHlch(28.41, 67.27, 307.52°)
OKLaboklab(40.09% 0.0597 -0.153)
OKLCHoklch(40.09% 0.164 291.3)
XYZxyz(9.5456, 5.6132, 29.8526)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C97 #76972C
analogous
#2C4097 #4D2C97 #822C97
triadic
#4D2C97 #974D2C #2C974D
tetradic
#4D2C97 #972C40 #76972C #2C9782
square
#4D2C97 #972C40 #76972C #2C9782
split-complementary
#4D2C97 #97822C #40972C
monochromatic
#1D1038 #351E68 #4D2C97 #653AC6 #8A6AD4

Accessibility & contrast

On white

9.89
#4D2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2C97
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C97#FFFFFF#000000##FFFFFF
##4D2C971.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#35475E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2c97;
/* rgb */ color: rgb(77, 44, 151);
/* oklch */ color: oklch(40.1% 0.164 291.3);
Tailwind
colors: {
  custom: {
    50: '#8668b6',
    500: '#4d2c97',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c97;
$custom-light: #8668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c97",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 258.505,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40088,
    "c": 0.1642,
    "h": 291.3
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#4D2C97
secondary
#A0BA65
accent
#DE4AB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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