#4D2488#4D2488

#4D2488 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.156 H 296.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4D2488
RGBrgb(77, 36, 136)
HSLhsl(265, 58%, 34%)
HSVhsv(265, 74%, 53%)
CMYKcmyk(43.4%, 73.5%, 0%, 46.7%)
CIE-LABlab(25.61, 40.97, -48.64)
CIE-LCHlch(25.61, 63.60, 310.11°)
OKLaboklab(37.7% 0.0707 -0.1391)
OKLCHoklch(37.7% 0.156 296.9)
XYZxyz(8.1342, 4.6169, 23.7504)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2488 #5F8824
analogous
#242D88 #4D2488 #7F2488
triadic
#4D2488 #884D24 #24884D
tetradic
#4D2488 #88242D #5F8824 #24887F
square
#4D2488 #88242D #5F8824 #24887F
split-complementary
#4D2488 #887F24 #2D8824
monochromatic
#160A27 #321758 #4D2488 #6831B8 #8855D2

Accessibility & contrast

On white

10.92
#4D2488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2488
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2488#FFFFFF#000000##FFFFFF
##4D24881.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#3E3D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d2488;
/* rgb */ color: rgb(77, 36, 136);
/* oklch */ color: oklch(37.7% 0.156 296.9);
Tailwind
colors: {
  custom: {
    50: '#8563ac',
    500: '#4d2488',
    950: '#000000',
  },
}
SCSS
$custom: #4d2488;
$custom-light: #8563ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2488",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 264.6,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37697,
    "c": 0.15602,
    "h": 296.9
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#4D2488
secondary
#8DB652
accent
#E146A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4D2488

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

Preview Lab → · Contrast checker → · Palette generator →

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