#4D2885#4D2885

#4D2885 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.147 H 297.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4D2885
RGBrgb(77, 40, 133)
HSLhsl(264, 54%, 34%)
HSVhsv(264, 70%, 52%)
CMYKcmyk(42.1%, 69.9%, 0%, 47.8%)
CIE-LABlab(26.12, 38.03, -45.94)
CIE-LCHlch(26.12, 59.64, 309.62°)
OKLaboklab(37.98% 0.067 -0.1312)
OKLCHoklch(37.98% 0.147 297.1)
XYZxyz(8.0519, 4.7887, 22.6858)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2885 #608528
analogous
#283285 #4D2885 #7C2885
triadic
#4D2885 #854D28 #28854D
tetradic
#4D2885 #852832 #608528 #28857C
square
#4D2885 #852832 #608528 #28857C
split-complementary
#4D2885 #857C28 #328528
monochromatic
#170C27 #321A56 #4D2885 #6836B4 #885ACD

Accessibility & contrast

On white

10.73
#4D2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4D2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2885
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2885#FFFFFF#000000##FFFFFF
##4D28851.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#3F3E53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2885;
/* rgb */ color: rgb(77, 40, 133);
/* oklch */ color: oklch(38.0% 0.147 297.1);
Tailwind
colors: {
  custom: {
    50: '#8465a9',
    500: '#4d2885',
    950: '#000000',
  },
}
SCSS
$custom: #4d2885;
$custom-light: #8465a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2885",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 263.871,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37982,
    "c": 0.14728,
    "h": 297.1
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#4D2885
secondary
#8EB356
accent
#DD4BA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2885

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

Preview Lab → · Contrast checker → · Palette generator →

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