#4D338D#4D338D

#4D338D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.142 H 292.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4D338D
RGBrgb(77, 51, 141)
HSLhsl(257, 47%, 38%)
HSVhsv(257, 64%, 55%)
CMYKcmyk(45.4%, 63.8%, 0%, 44.7%)
CIE-LABlab(29.08, 34.03, -46.12)
CIE-LCHlch(29.08, 57.31, 306.42°)
OKLaboklab(40.31% 0.0535 -0.1317)
OKLCHoklch(40.31% 0.142 292.1)
XYZxyz(9.0508, 5.8682, 25.8499)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D338D #738D33
analogous
#33468D #4D338D #7A338D
triadic
#4D338D #8D4D33 #338D4D
tetradic
#4D338D #8D3346 #738D33 #338D7A
square
#4D338D #8D3346 #738D33 #338D7A
split-complementary
#4D338D #8D7A33 #468D33
monochromatic
#1C1233 #342360 #4D338D #6643BA #8A6FCB

Accessibility & contrast

On white

9.66
#4D338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D338D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D338D#FFFFFF#000000##FFFFFF
##4D338D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#3A485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d338d;
/* rgb */ color: rgb(77, 51, 141);
/* oklch */ color: oklch(40.3% 0.142 292.1);
Tailwind
colors: {
  custom: {
    50: '#846caf',
    500: '#4d338d',
    950: '#000000',
  },
}
SCSS
$custom: #4d338d;
$custom-light: #846caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d338d",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 257.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.14216,
    "h": 292.1
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#4D338D
secondary
#9EB369
accent
#D751B0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D338D

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

Preview Lab → · Contrast checker → · Palette generator →

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