#4D348C#4D348C

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

Color values

HEX#4D348C
RGBrgb(77, 52, 140)
HSLhsl(257, 46%, 38%)
HSVhsv(257, 63%, 55%)
CMYKcmyk(45%, 62.9%, 0%, 45.1%)
CIE-LABlab(29.23, 33.13, -45.26)
CIE-LCHlch(29.23, 56.09, 306.20°)
OKLaboklab(40.4% 0.0524 -0.1292)
OKLCHoklch(40.4% 0.139 292.1)
XYZxyz(9.0209, 5.9269, 25.4746)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D348C #738C34
analogous
#34478C #4D348C #79348C
triadic
#4D348C #8C4D34 #348C4D
tetradic
#4D348C #8C3447 #738C34 #348C79
square
#4D348C #8C3447 #738C34 #348C79
split-complementary
#4D348C #8C7934 #478C34
monochromatic
#1C1333 #34235F #4D348C #6645B9 #8A70CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D348C#FFFFFF#000000##FFFFFF
##4D348C1.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)
#00468F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#3B485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d348c;
/* rgb */ color: rgb(77, 52, 140);
/* oklch */ color: oklch(40.4% 0.139 292.1);
Tailwind
colors: {
  custom: {
    50: '#846dae',
    500: '#4d348c',
    950: '#000000',
  },
}
SCSS
$custom: #4d348c;
$custom-light: #846dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d348c",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 257.045,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40397,
    "c": 0.1394,
    "h": 292.1
  },
  "luminance": 0.05927
}

Semantic roles & 50–950 ramp

primary
#4D348C
secondary
#9EB26A
accent
#D552B0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D348C

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

Preview Lab → · Contrast checker → · Palette generator →

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