#4D2495#4D2495

#4D2495 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.171 H 293.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4D2495
RGBrgb(77, 36, 149)
HSLhsl(262, 61%, 36%)
HSVhsv(262, 76%, 58%)
CMYKcmyk(48.3%, 75.8%, 0%, 41.6%)
CIE-LABlab(26.76, 44.55, -54.83)
CIE-LCHlch(26.76, 70.64, 309.09°)
OKLaboklab(38.86% 0.0676 -0.1572)
OKLCHoklch(38.86% 0.171 293.3)
XYZxyz(9.1148, 5.0092, 28.9146)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2495 #6C9524
analogous
#243495 #4D2495 #862495
triadic
#4D2495 #954D24 #24954D
tetradic
#4D2495 #952434 #6C9524 #249586
square
#4D2495 #952434 #6C9524 #249586
split-complementary
#4D2495 #958624 #349524
monochromatic
#1A0C32 #341864 #4D2495 #6630C6 #895CD8

Accessibility & contrast

On white

10.49
#4D2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2495
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2495#FFFFFF#000000##FFFFFF
##4D24951.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#37425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2495;
/* rgb */ color: rgb(77, 36, 149);
/* oklch */ color: oklch(38.9% 0.171 293.3);
Tailwind
colors: {
  custom: {
    50: '#8663b5',
    500: '#4d2495',
    950: '#000000',
  },
}
SCSS
$custom: #4d2495;
$custom-light: #8663b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2495",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 261.77,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38861,
    "c": 0.17118,
    "h": 293.3
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#4D2495
secondary
#98BC59
accent
#E444AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2495

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

Preview Lab → · Contrast checker → · Palette generator →

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