#4D338C#4D338C

#4D338C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.141 H 292.4°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4D338C
RGBrgb(77, 51, 140)
HSLhsl(258, 47%, 37%)
HSVhsv(258, 64%, 55%)
CMYKcmyk(45%, 63.6%, 0%, 45.1%)
CIE-LABlab(29.00, 33.73, -45.63)
CIE-LCHlch(29.00, 56.74, 306.47°)
OKLaboklab(40.23% 0.0536 -0.1303)
OKLCHoklch(40.23% 0.141 292.4)
XYZxyz(8.9767, 5.8386, 25.4599)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D338C #728C33
analogous
#33468C #4D338C #7A338C
triadic
#4D338C #8C4D33 #338C4D
tetradic
#4D338C #8C3346 #728C33 #338C7A
square
#4D338C #8C3346 #728C33 #338C7A
split-complementary
#4D338C #8C7A33 #468C33
monochromatic
#1C1232 #34235F #4D338C #6643B9 #8A6FCB

Accessibility & contrast

On white

9.69
#4D338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4D338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D338C
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D338C#FFFFFF#000000##FFFFFF
##4D338C1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#3B475A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d338c;
/* rgb */ color: rgb(77, 51, 140);
/* oklch */ color: oklch(40.2% 0.141 292.4);
Tailwind
colors: {
  custom: {
    50: '#846cae',
    500: '#4d338c',
    950: '#000000',
  },
}
SCSS
$custom: #4d338c;
$custom-light: #846cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d338c",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 257.528,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40233,
    "c": 0.14085,
    "h": 292.4
  },
  "luminance": 0.05839
}

Semantic roles & 50–950 ramp

primary
#4D338C
secondary
#9DB268
accent
#D652AF
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D338C

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

Preview Lab → · Contrast checker → · Palette generator →

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