#4D337A#4D337A

#4D337A is a dark, moderate violet. Relative luminance 0.054; OKLCH L 38.9% C 0.117 H 297.6°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4D337A
RGBrgb(77, 51, 122)
HSLhsl(262, 41%, 34%)
HSVhsv(262, 58%, 48%)
CMYKcmyk(36.9%, 58.2%, 0%, 52.2%)
CIE-LABlab(27.71, 28.47, -36.46)
CIE-LCHlch(27.71, 46.26, 307.98°)
OKLaboklab(38.88% 0.0541 -0.1033)
OKLCHoklch(38.88% 0.117 297.6)
XYZxyz(7.7564, 5.3505, 19.0327)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D337A #607A33
analogous
#333D7A #4D337A #71337A
triadic
#4D337A #7A4D33 #337A4D
tetradic
#4D337A #7A333D #607A33 #337A71
square
#4D337A #7A333D #607A33 #337A71
split-complementary
#4D337A #7A7133 #3D7A33
monochromatic
#170F24 #32214F #4D337A #6845A5 #8868C0

Accessibility & contrast

On white

10.14
#4D337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D337A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D337A#FFFFFF#000000##FFFFFF
##4D337A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427C
Deuteranopia (green-blind)
#1C4178
Tritanopia (blue-blind)
#434251
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d337a;
/* rgb */ color: rgb(77, 51, 122);
/* oklch */ color: oklch(38.9% 0.117 297.6);
Tailwind
colors: {
  custom: {
    50: '#826ca1',
    500: '#4d337a',
    950: '#000000',
  },
}
SCSS
$custom: #4d337a;
$custom-light: #826ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d337a",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 261.972,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38876,
    "c": 0.1166,
    "h": 297.6
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#4D337A
secondary
#8EA861
accent
#D157A4
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4D337A

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

Preview Lab → · Contrast checker → · Palette generator →

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