#4D3C98#4D3C98

#4D3C98 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.7% C 0.144 H 287.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4D3C98
RGBrgb(77, 60, 152)
HSLhsl(251, 43%, 42%)
HSVhsv(251, 61%, 60%)
CMYKcmyk(49.3%, 60.5%, 0%, 40.4%)
CIE-LABlab(31.98, 31.90, -48.17)
CIE-LCHlch(31.98, 57.77, 303.51°)
OKLaboklab(42.69% 0.0424 -0.1377)
OKLCHoklch(42.69% 0.144 287.1)
XYZxyz(10.3423, 7.0760, 30.5205)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3C98 #87983C
analogous
#3C5998 #4D3C98 #7B3C98
triadic
#4D3C98 #984D3C #3C984D
tetradic
#4D3C98 #983C59 #87983C #3C987B
square
#4D3C98 #983C59 #87983C #3C987B
split-complementary
#4D3C98 #987B3C #59983C
monochromatic
#211940 #372B6C #4D3C98 #6855BC #8F81CD

Accessibility & contrast

On white

8.69
#4D3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4D3C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3C98
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3C98#FFFFFF#000000##FFFFFF
##4D3C981.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#335164
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d3c98;
/* rgb */ color: rgb(77, 60, 152);
/* oklch */ color: oklch(42.7% 0.144 287.1);
Tailwind
colors: {
  custom: {
    50: '#8572b7',
    500: '#4d3c98',
    950: '#000000',
  },
}
SCSS
$custom: #4d3c98;
$custom-light: #8572b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3c98",
  "rgb": {
    "r": 77,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 251.087,
    "s": 43.396,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42694,
    "c": 0.14411,
    "h": 287.1
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#4D3C98
secondary
#ACB779
accent
#D355BC
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #4D3C98

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

Preview Lab → · Contrast checker → · Palette generator →

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