#4D336A#4D336A

#4D336A is a dark, moderate violet. Relative luminance 0.050; OKLCH L 37.8% C 0.094 H 304.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4D336A
RGBrgb(77, 51, 106)
HSLhsl(268, 35%, 31%)
HSVhsv(268, 52%, 42%)
CMYKcmyk(27.4%, 51.9%, 0%, 58.4%)
CIE-LABlab(26.70, 24.00, -27.89)
CIE-LCHlch(26.70, 36.80, 310.71°)
OKLaboklab(37.8% 0.0529 -0.0782)
OKLCHoklch(37.8% 0.094 304.1)
XYZxyz(6.8454, 4.9861, 14.2347)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D336A #506A33
analogous
#33346A #4D336A #68336A
triadic
#4D336A #6A4D33 #336A4D
tetradic
#4D336A #6A3334 #506A33 #336A68
square
#4D336A #6A3334 #506A33 #336A68
split-complementary
#4D336A #6A6833 #346A33
monochromatic
#110B17 #2F1F41 #4D336A #6B4793 #8963B4

Accessibility & contrast

On white

10.51
#4D336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D336A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D336A#FFFFFF#000000##FFFFFF
##4D336A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233E6C
Deuteranopia (green-blind)
#2A3F69
Tritanopia (blue-blind)
#483D49
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d336a;
/* rgb */ color: rgb(77, 51, 106);
/* oklch */ color: oklch(37.8% 0.094 304.1);
Tailwind
colors: {
  custom: {
    50: '#806b95',
    500: '#4d336a',
    950: '#000000',
  },
}
SCSS
$custom: #4d336a;
$custom-light: #806b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4d336a",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 268.364,
    "s": 35.032,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37796,
    "c": 0.09445,
    "h": 304.1
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#4D336A
secondary
#7E9B5E
accent
#CB5D97
background
#F7F6F9
surface
#EEEBF1
border
#C9C6CB
text
#0A070D
muted
#7C7A7E

Preview Lab

Preview with #4D336A

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

Preview Lab → · Contrast checker → · Palette generator →

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