#4D3892#4D3892

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

Color values

HEX#4D3892
RGBrgb(77, 56, 146)
HSLhsl(254, 45%, 40%)
HSVhsv(254, 62%, 57%)
CMYKcmyk(47.3%, 61.6%, 0%, 42.7%)
CIE-LABlab(30.60, 32.51, -46.74)
CIE-LCHlch(30.60, 56.93, 304.82°)
OKLaboklab(41.54% 0.0473 -0.1335)
OKLCHoklch(41.54% 0.142 289.5)
XYZxyz(9.6616, 6.4811, 27.9305)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3892 #7D9238
analogous
#385092 #4D3892 #7A3892
triadic
#4D3892 #924D38 #38924D
tetradic
#4D3892 #923850 #7D9238 #38927A
square
#4D3892 #923850 #7D9238 #38927A
split-complementary
#4D3892 #927A38 #509238
monochromatic
#1E163A #362766 #4D3892 #664DBB #8C79CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D3892#FFFFFF#000000##FFFFFF
##4D38921.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)
#004A95
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#374D5F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d3892;
/* rgb */ color: rgb(77, 56, 146);
/* oklch */ color: oklch(41.5% 0.142 289.5);
Tailwind
colors: {
  custom: {
    50: '#846fb3',
    500: '#4d3892',
    950: '#000000',
  },
}
SCSS
$custom: #4d3892;
$custom-light: #846fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3892",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 146
  },
  "hsl": {
    "h": 254,
    "s": 44.554,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41538,
    "c": 0.14167,
    "h": 289.5
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#4D3892
secondary
#A5B571
accent
#D454B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4D3892

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

Preview Lab → · Contrast checker → · Palette generator →

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