#4D2397#4D2397

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

Color values

HEX#4D2397
RGBrgb(77, 35, 151)
HSLhsl(262, 62%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(49%, 76.8%, 0%, 40.8%)
CIE-LABlab(26.77, 45.58, -56.03)
CIE-LCHlch(26.77, 72.23, 309.13°)
OKLaboklab(38.93% 0.068 -0.1608)
OKLCHoklch(38.93% 0.175 292.9)
XYZxyz(9.2460, 5.0139, 29.7528)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2397 #6D9723
analogous
#233397 #4D2397 #872397
triadic
#4D2397 #974D23 #23974D
tetradic
#4D2397 #972333 #6D9723 #239787
square
#4D2397 #972333 #6D9723 #239787
split-complementary
#4D2397 #978723 #339723
monochromatic
#1A0C34 #341765 #4D2397 #662FC9 #895BD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D2397#FFFFFF#000000##FFFFFF
##4D23971.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)
#00419A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#36435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2397;
/* rgb */ color: rgb(77, 35, 151);
/* oklch */ color: oklch(38.9% 0.175 292.9);
Tailwind
colors: {
  custom: {
    50: '#8763b7',
    500: '#4d2397',
    950: '#000000',
  },
}
SCSS
$custom: #4d2397;
$custom-light: #8763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2397",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 261.724,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38927,
    "c": 0.17455,
    "h": 292.9
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#4D2397
secondary
#99BE58
accent
#E542AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2397

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

Preview Lab → · Contrast checker → · Palette generator →

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