#4D368D#4D368D

#4D368D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.138 H 291.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4D368D
RGBrgb(77, 54, 141)
HSLhsl(256, 45%, 38%)
HSVhsv(256, 62%, 55%)
CMYKcmyk(45.4%, 61.7%, 0%, 44.7%)
CIE-LABlab(29.76, 32.21, -45.02)
CIE-LCHlch(29.76, 55.36, 305.59°)
OKLaboklab(40.81% 0.0499 -0.1285)
OKLCHoklch(40.81% 0.138 291.2)
XYZxyz(9.1861, 6.1389, 25.8951)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D368D #768D36
analogous
#364A8D #4D368D #78368D
triadic
#4D368D #8D4D36 #368D4D
tetradic
#4D368D #8D364A #768D36 #368D78
square
#4D368D #8D364A #768D36 #368D78
split-complementary
#4D368D #8D7836 #4A8D36
monochromatic
#1D1434 #352561 #4D368D #6547B9 #8A74CA

Accessibility & contrast

On white

9.43
#4D368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D368D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D368D#FFFFFF#000000##FFFFFF
##4D368D1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d368d;
/* rgb */ color: rgb(77, 54, 141);
/* oklch */ color: oklch(40.8% 0.138 291.2);
Tailwind
colors: {
  custom: {
    50: '#846eaf',
    500: '#4d368d',
    950: '#000000',
  },
}
SCSS
$custom: #4d368d;
$custom-light: #846eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d368d",
  "rgb": {
    "r": 77,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 255.862,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4081,
    "c": 0.13782,
    "h": 291.2
  },
  "luminance": 0.06139
}

Semantic roles & 50–950 ramp

primary
#4D368D
secondary
#A0B26D
accent
#D453B2
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D368D

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

Preview Lab → · Contrast checker → · Palette generator →

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