#4D2E87#4D2E87

#4D2E87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.141 H 295.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4D2E87
RGBrgb(77, 46, 135)
HSLhsl(261, 49%, 35%)
HSVhsv(261, 66%, 53%)
CMYKcmyk(43%, 65.9%, 0%, 47.1%)
CIE-LABlab(27.52, 35.21, -44.92)
CIE-LCHlch(27.52, 57.08, 308.09°)
OKLaboklab(39.04% 0.0599 -0.1282)
OKLCHoklch(39.04% 0.141 295)
XYZxyz(8.4096, 5.2808, 23.4932)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E87 #68872E
analogous
#2E3B87 #4D2E87 #792E87
triadic
#4D2E87 #874D2E #2E874D
tetradic
#4D2E87 #872E3B #68872E #2E8779
square
#4D2E87 #872E3B #68872E #2E8779
split-complementary
#4D2E87 #87792E #3B872E
monochromatic
#190F2C #331E59 #4D2E87 #673EB5 #8865CA

Accessibility & contrast

On white

10.21
#4D2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E87
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E87#FFFFFF#000000##FFFFFF
##4D2E871.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#3E4356
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2e87;
/* rgb */ color: rgb(77, 46, 135);
/* oklch */ color: oklch(39.0% 0.141 295.0);
Tailwind
colors: {
  custom: {
    50: '#8469ab',
    500: '#4d2e87',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e87;
$custom-light: #8469ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e87",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 260.899,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39037,
    "c": 0.14148,
    "h": 295
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#4D2E87
secondary
#95B160
accent
#D94FA9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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