#4D2398#4D2398

#4D2398 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.176 H 292.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4D2398
RGBrgb(77, 35, 152)
HSLhsl(262, 63%, 37%)
HSVhsv(262, 77%, 60%)
CMYKcmyk(49.3%, 77%, 0%, 40.4%)
CIE-LABlab(26.87, 45.86, -56.50)
CIE-LCHlch(26.87, 72.77, 309.07°)
OKLaboklab(39.02% 0.0677 -0.1621)
OKLCHoklch(39.02% 0.176 292.7)
XYZxyz(9.3275, 5.0465, 30.1823)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2398 #6E9823
analogous
#233498 #4D2398 #882398
triadic
#4D2398 #984D23 #23984D
tetradic
#4D2398 #982334 #6E9823 #239888
square
#4D2398 #982334 #6E9823 #239888
split-complementary
#4D2398 #988823 #349823
monochromatic
#1B0C35 #341866 #4D2398 #662ECA #895CD9

Accessibility & contrast

On white

10.45
#4D2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2398
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2398#FFFFFF#000000##FFFFFF
##4D23981.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#35435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2398;
/* rgb */ color: rgb(77, 35, 152);
/* oklch */ color: oklch(39.0% 0.176 292.7);
Tailwind
colors: {
  custom: {
    50: '#8763b7',
    500: '#4d2398',
    950: '#000000',
  },
}
SCSS
$custom: #4d2398;
$custom-light: #8763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2398",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 261.538,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3902,
    "c": 0.17569,
    "h": 292.7
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#4D2398
secondary
#9ABE59
accent
#E642AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2398

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

Preview Lab → · Contrast checker → · Palette generator →

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