#4D2487#4D2487

#4D2487 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.155 H 297.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4D2487
RGBrgb(77, 36, 135)
HSLhsl(265, 58%, 34%)
HSVhsv(265, 73%, 53%)
CMYKcmyk(43%, 73.3%, 0%, 47.1%)
CIE-LABlab(25.53, 40.70, -48.16)
CIE-LCHlch(25.53, 63.05, 310.20°)
OKLaboklab(37.61% 0.0709 -0.1377)
OKLCHoklch(37.61% 0.155 297.3)
XYZxyz(8.0635, 4.5887, 23.3778)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2487 #5E8724
analogous
#242D87 #4D2487 #7E2487
triadic
#4D2487 #874D24 #24874D
tetradic
#4D2487 #87242D #5E8724 #24877E
square
#4D2487 #87242D #5E8724 #24877E
split-complementary
#4D2487 #877E24 #2D8724
monochromatic
#160A26 #311757 #4D2487 #6931B7 #8854D1

Accessibility & contrast

On white

10.95
#4D2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2487
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2487#FFFFFF#000000##FFFFFF
##4D24871.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3E3D53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2487;
/* rgb */ color: rgb(77, 36, 135);
/* oklch */ color: oklch(37.6% 0.155 297.3);
Tailwind
colors: {
  custom: {
    50: '#8462ab',
    500: '#4d2487',
    950: '#000000',
  },
}
SCSS
$custom: #4d2487;
$custom-light: #8462ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2487",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 264.848,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3761,
    "c": 0.15485,
    "h": 297.3
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#4D2487
secondary
#8CB551
accent
#E147A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4D2487

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

Preview Lab → · Contrast checker → · Palette generator →

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