#4D2597#4D2597

#4D2597 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.172 H 292.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4D2597
RGBrgb(77, 37, 151)
HSLhsl(261, 61%, 37%)
HSVhsv(261, 75%, 59%)
CMYKcmyk(49%, 75.5%, 0%, 40.8%)
CIE-LABlab(27.12, 44.61, -55.47)
CIE-LCHlch(27.12, 71.19, 308.80°)
OKLaboklab(39.17% 0.0662 -0.1592)
OKLCHoklch(39.17% 0.172 292.6)
XYZxyz(9.3065, 5.1350, 29.7730)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2597 #6F9725
analogous
#253697 #4D2597 #862597
triadic
#4D2597 #974D25 #25974D
tetradic
#4D2597 #972536 #6F9725 #259786
square
#4D2597 #972536 #6F9725 #259786
split-complementary
#4D2597 #978625 #369725
monochromatic
#1B0D35 #341966 #4D2597 #6631C8 #895FD8

Accessibility & contrast

On white

10.36
#4D2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2597
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2597#FFFFFF#000000##FFFFFF
##4D25971.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#36445C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2597;
/* rgb */ color: rgb(77, 37, 151);
/* oklch */ color: oklch(39.2% 0.172 292.6);
Tailwind
colors: {
  custom: {
    50: '#8664b7',
    500: '#4d2597',
    950: '#000000',
  },
}
SCSS
$custom: #4d2597;
$custom-light: #8664b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2597",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 261.053,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39167,
    "c": 0.17238,
    "h": 292.6
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#4D2597
secondary
#9ABD5B
accent
#E444AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2597

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

Preview Lab → · Contrast checker → · Palette generator →

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