#4D3F7C#4D3F7C

#4D3F7C is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.3% C 0.100 H 292.0°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4D3F7C
RGBrgb(77, 63, 124)
HSLhsl(254, 33%, 37%)
HSVhsv(254, 49%, 49%)
CMYKcmyk(37.9%, 49.2%, 0%, 51.4%)
CIE-LABlab(30.85, 21.44, -32.71)
CIE-LCHlch(30.85, 39.11, 303.25°)
OKLaboklab(41.25% 0.0373 -0.0923)
OKLCHoklch(41.25% 0.1 292)
XYZxyz(8.4752, 6.5878, 19.8899)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3F7C #6E7C3F
analogous
#3F507C #4D3F7C #6C3F7C
triadic
#4D3F7C #7C4D3F #3F7C4D
tetradic
#4D3F7C #7C3F50 #6E7C3F #3F7C6C
square
#4D3F7C #7C3F50 #6E7C3F #3F7C6C
split-complementary
#4D3F7C #7C6C3F #507C3F
monochromatic
#1B162B #342A53 #4D3F7C #6654A5 #897ABB

Accessibility & contrast

On white

9.06
#4D3F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4D3F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3F7C
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3F7C#FFFFFF#000000##FFFFFF
##4D3F7C1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7E
Deuteranopia (green-blind)
#2B477B
Tritanopia (blue-blind)
#414B57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d3f7c;
/* rgb */ color: rgb(77, 63, 124);
/* oklch */ color: oklch(41.3% 0.100 292.0);
Tailwind
colors: {
  custom: {
    50: '#8174a2',
    500: '#4d3f7c',
    950: '#000000',
  },
}
SCSS
$custom: #4d3f7c;
$custom-light: #8174a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3f7c",
  "rgb": {
    "r": 77,
    "g": 63,
    "b": 124
  },
  "hsl": {
    "h": 253.77,
    "s": 32.62,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41253,
    "c": 0.09956,
    "h": 292
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#4D3F7C
secondary
#9AA671
accent
#C95FB0
background
#F8F7FA
surface
#EFEDF3
border
#CAC8CD
text
#0A080F
muted
#7C7B7F

Preview Lab

Preview with #4D3F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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