#4D2498#4D2498

#4D2498 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.175 H 292.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4D2498
RGBrgb(77, 36, 152)
HSLhsl(261, 62%, 37%)
HSVhsv(261, 76%, 60%)
CMYKcmyk(49.3%, 76.3%, 0%, 40.4%)
CIE-LABlab(27.04, 45.38, -56.22)
CIE-LCHlch(27.04, 72.25, 308.91°)
OKLaboklab(39.14% 0.0668 -0.1613)
OKLCHoklch(39.14% 0.175 292.5)
XYZxyz(9.3574, 5.1062, 30.1922)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2498 #6F9824
analogous
#243598 #4D2498 #872498
triadic
#4D2498 #984D24 #24984D
tetradic
#4D2498 #982435 #6F9824 #249887
square
#4D2498 #982435 #6F9824 #249887
split-complementary
#4D2498 #988724 #359824
monochromatic
#1B0D35 #341867 #4D2498 #6630C9 #895ED9

Accessibility & contrast

On white

10.39
#4D2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2498
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2498#FFFFFF#000000##FFFFFF
##4D24981.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#35435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2498;
/* rgb */ color: rgb(77, 36, 152);
/* oklch */ color: oklch(39.1% 0.175 292.5);
Tailwind
colors: {
  custom: {
    50: '#8763b7',
    500: '#4d2498',
    950: '#000000',
  },
}
SCSS
$custom: #4d2498;
$custom-light: #8763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2498",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 261.207,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39138,
    "c": 0.17463,
    "h": 292.5
  },
  "luminance": 0.05107
}

Semantic roles & 50–950 ramp

primary
#4D2498
secondary
#9ABE5A
accent
#E543AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2498

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

Preview Lab → · Contrast checker → · Palette generator →

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