#4D348F#4D348F

#4D348F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.143 H 291.3°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4D348F
RGBrgb(77, 52, 143)
HSLhsl(256, 47%, 38%)
HSVhsv(256, 64%, 56%)
CMYKcmyk(46.2%, 63.6%, 0%, 43.9%)
CIE-LABlab(29.45, 34.02, -46.74)
CIE-LCHlch(29.45, 57.82, 306.05°)
OKLaboklab(40.63% 0.0522 -0.1335)
OKLCHoklch(40.63% 0.143 291.3)
XYZxyz(9.2451, 6.0166, 26.6555)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D348F #768F34
analogous
#34488F #4D348F #7A348F
triadic
#4D348F #8F4D34 #348F4D
tetradic
#4D348F #8F3448 #768F34 #348F7A
square
#4D348F #8F3448 #768F34 #348F7A
split-complementary
#4D348F #8F7A34 #488F34
monochromatic
#1D1335 #352462 #4D348F #6545BB #8A72CC

Accessibility & contrast

On white

9.53
#4D348F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D348F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D348F
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D348F#FFFFFF#000000##FFFFFF
##4D348F1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d348f;
/* rgb */ color: rgb(77, 52, 143);
/* oklch */ color: oklch(40.6% 0.143 291.3);
Tailwind
colors: {
  custom: {
    50: '#846db0',
    500: '#4d348f',
    950: '#000000',
  },
}
SCSS
$custom: #4d348f;
$custom-light: #846db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d348f",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 143
  },
  "hsl": {
    "h": 256.484,
    "s": 46.667,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.14338,
    "h": 291.3
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#4D348F
secondary
#A0B46B
accent
#D651B2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4D348F

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

Preview Lab → · Contrast checker → · Palette generator →

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