#4D338F#4D338F

#4D338F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.145 H 291.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4D338F
RGBrgb(77, 51, 143)
HSLhsl(257, 47%, 38%)
HSVhsv(257, 64%, 56%)
CMYKcmyk(46.2%, 64.3%, 0%, 43.9%)
CIE-LABlab(29.23, 34.62, -47.11)
CIE-LCHlch(29.23, 58.46, 306.31°)
OKLaboklab(40.47% 0.0533 -0.1346)
OKLCHoklch(40.47% 0.145 291.6)
XYZxyz(9.2009, 5.9283, 26.6408)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D338F #758F33
analogous
#33478F #4D338F #7B338F
triadic
#4D338F #8F4D33 #338F4D
tetradic
#4D338F #8F3347 #758F33 #338F7B
square
#4D338F #8F3347 #758F33 #338F7B
split-complementary
#4D338F #8F7B33 #478F33
monochromatic
#1C1335 #352362 #4D338F #6543BC #8A70CC

Accessibility & contrast

On white

9.61
#4D338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D338F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D338F#FFFFFF#000000##FFFFFF
##4D338F1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#39485C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d338f;
/* rgb */ color: rgb(77, 51, 143);
/* oklch */ color: oklch(40.5% 0.145 291.6);
Tailwind
colors: {
  custom: {
    50: '#846cb0',
    500: '#4d338f',
    950: '#000000',
  },
}
SCSS
$custom: #4d338f;
$custom-light: #846cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d338f",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 256.957,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40472,
    "c": 0.14479,
    "h": 291.6
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#4D338F
secondary
#9FB46A
accent
#D751B1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4D338F

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

Preview Lab → · Contrast checker → · Palette generator →

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