#4D2887#4D2887

#4D2887 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.150 H 296.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4D2887
RGBrgb(77, 40, 135)
HSLhsl(263, 54%, 34%)
HSVhsv(263, 70%, 53%)
CMYKcmyk(43%, 70.4%, 0%, 47.1%)
CIE-LABlab(26.29, 38.58, -46.92)
CIE-LCHlch(26.29, 60.75, 309.43°)
OKLaboklab(38.15% 0.0667 -0.1341)
OKLCHoklch(38.15% 0.15 296.4)
XYZxyz(8.1914, 4.8445, 23.4205)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2887 #628728
analogous
#283387 #4D2887 #7D2887
triadic
#4D2887 #874D28 #28874D
tetradic
#4D2887 #872833 #628728 #28877D
square
#4D2887 #872833 #628728 #28877D
split-complementary
#4D2887 #877D28 #338728
monochromatic
#170C29 #321A58 #4D2887 #6836B6 #885BCE

Accessibility & contrast

On white

10.67
#4D2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2887
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2887#FFFFFF#000000##FFFFFF
##4D28871.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#3E3F54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2887;
/* rgb */ color: rgb(77, 40, 135);
/* oklch */ color: oklch(38.1% 0.150 296.4);
Tailwind
colors: {
  custom: {
    50: '#8465ab',
    500: '#4d2887',
    950: '#000000',
  },
}
SCSS
$custom: #4d2887;
$custom-light: #8465ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2887",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 263.368,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.14973,
    "h": 296.4
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#4D2887
secondary
#90B457
accent
#DE4AA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2887

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

Preview Lab → · Contrast checker → · Palette generator →

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