#4D398D#4D398D

#4D398D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.133 H 290.3°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#4D398D
RGBrgb(77, 57, 141)
HSLhsl(254, 42%, 39%)
HSVhsv(254, 60%, 55%)
CMYKcmyk(45.4%, 59.6%, 0%, 44.7%)
CIE-LABlab(30.46, 30.37, -43.88)
CIE-LCHlch(30.46, 53.36, 304.69°)
OKLaboklab(41.33% 0.0463 -0.1251)
OKLCHoklch(41.33% 0.133 290.3)
XYZxyz(9.3301, 6.4268, 25.9430)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D398D #798D39
analogous
#394F8D #4D398D #77398D
triadic
#4D398D #8D4D39 #398D4D
tetradic
#4D398D #8D394F #798D39 #398D77
square
#4D398D #8D394F #798D39 #398D77
split-complementary
#4D398D #8D7739 #4F8D39
monochromatic
#1D1636 #352761 #4D398D #664CB7 #8B78C8

Accessibility & contrast

On white

9.19
#4D398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D398D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D398D#FFFFFF#000000##FFFFFF
##4D398D1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#06468B
Tritanopia (blue-blind)
#3A4C5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d398d;
/* rgb */ color: rgb(77, 57, 141);
/* oklch */ color: oklch(41.3% 0.133 290.3);
Tailwind
colors: {
  custom: {
    50: '#8470af',
    500: '#4d398d',
    950: '#000000',
  },
}
SCSS
$custom: #4d398d;
$custom-light: #8470af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d398d",
  "rgb": {
    "r": 77,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 254.286,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41327,
    "c": 0.1334,
    "h": 290.3
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

primary
#4D398D
secondary
#A2B270
accent
#D256B5
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D398D

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

Preview Lab → · Contrast checker → · Palette generator →

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