#4D3795#4D3795

#4D3795 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.6% C 0.147 H 289.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4D3795
RGBrgb(77, 55, 149)
HSLhsl(254, 46%, 40%)
HSVhsv(254, 63%, 58%)
CMYKcmyk(48.3%, 63.1%, 0%, 41.6%)
CIE-LABlab(30.59, 34.03, -48.58)
CIE-LCHlch(30.59, 59.32, 305.01°)
OKLaboklab(41.61% 0.0483 -0.139)
OKLCHoklch(41.61% 0.147 289.2)
XYZxyz(9.8500, 6.4797, 29.1596)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3795 #7F9537
analogous
#375095 #4D3795 #7C3795
triadic
#4D3795 #954D37 #37954D
tetradic
#4D3795 #953750 #7F9537 #37957C
square
#4D3795 #953750 #7F9537 #37957C
split-complementary
#4D3795 #957C37 #509537
monochromatic
#1F163C #362768 #4D3795 #674CBD #8D79CD

Accessibility & contrast

On white

9.15
#4D3795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4D3795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3795
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3795#FFFFFF#000000##FFFFFF
##4D37951.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#364D60
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d3795;
/* rgb */ color: rgb(77, 55, 149);
/* oklch */ color: oklch(41.6% 0.147 289.2);
Tailwind
colors: {
  custom: {
    50: '#856fb5',
    500: '#4d3795',
    950: '#000000',
  },
}
SCSS
$custom: #4d3795;
$custom-light: #856fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3795",
  "rgb": {
    "r": 77,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 254.043,
    "s": 46.078,
    "l": 40
  },
  "oklch": {
    "l": 0.41608,
    "c": 0.14711,
    "h": 289.2
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#4D3795
secondary
#A6B671
accent
#D652B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3795

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

Preview Lab → · Contrast checker → · Palette generator →

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