#4D368E#4D368E

#4D368E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.9% C 0.139 H 291.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4D368E
RGBrgb(77, 54, 142)
HSLhsl(256, 45%, 38%)
HSVhsv(256, 62%, 56%)
CMYKcmyk(45.8%, 62%, 0%, 44.3%)
CIE-LABlab(29.83, 32.52, -45.51)
CIE-LCHlch(29.83, 55.93, 305.54°)
OKLaboklab(40.89% 0.0499 -0.1299)
OKLCHoklch(40.89% 0.139 291)
XYZxyz(9.2609, 6.1688, 26.2887)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D368E #778E36
analogous
#364B8E #4D368E #79368E
triadic
#4D368E #8E4D36 #368E4D
tetradic
#4D368E #8E364B #778E36 #368E79
square
#4D368E #8E364B #778E36 #368E79
split-complementary
#4D368E #8E7936 #4B8E36
monochromatic
#1D1435 #352562 #4D368E #6648B9 #8B74CA

Accessibility & contrast

On white

9.40
#4D368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D368E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D368E#FFFFFF#000000##FFFFFF
##4D368E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#3A4A5C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d368e;
/* rgb */ color: rgb(77, 54, 142);
/* oklch */ color: oklch(40.9% 0.139 291.0);
Tailwind
colors: {
  custom: {
    50: '#846eb0',
    500: '#4d368e',
    950: '#000000',
  },
}
SCSS
$custom: #4d368e;
$custom-light: #846eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d368e",
  "rgb": {
    "r": 77,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 255.682,
    "s": 44.898,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40888,
    "c": 0.13917,
    "h": 291
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#4D368E
secondary
#A1B36D
accent
#D553B3
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D368E

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

Preview Lab → · Contrast checker → · Palette generator →

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