#4D2286#4D2286

#4D2286 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.156 H 297.9°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#4D2286
RGBrgb(77, 34, 134)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 53%)
CMYKcmyk(42.5%, 74.6%, 0%, 47.5%)
CIE-LABlab(25.08, 41.43, -48.26)
CIE-LCHlch(25.08, 63.60, 310.65°)
OKLaboklab(37.27% 0.0731 -0.1379)
OKLCHoklch(37.27% 0.156 297.9)
XYZxyz(7.9346, 4.4429, 22.9892)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2286 #5B8622
analogous
#222986 #4D2286 #7F2286
triadic
#4D2286 #864D22 #22864D
tetradic
#4D2286 #862229 #5B8622 #22867F
square
#4D2286 #862229 #5B8622 #22867F
split-complementary
#4D2286 #867F22 #298622
monochromatic
#150924 #311655 #4D2286 #692EB7 #8850D3

Accessibility & contrast

On white

11.12
#4D2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4D2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2286
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2286#FFFFFF#000000##FFFFFF
##4D22861.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#3F3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2286;
/* rgb */ color: rgb(77, 34, 134);
/* oklch */ color: oklch(37.3% 0.156 297.9);
Tailwind
colors: {
  custom: {
    50: '#8461aa',
    500: '#4d2286',
    950: '#000000',
  },
}
SCSS
$custom: #4d2286;
$custom-light: #8461aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2286",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 265.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37268,
    "c": 0.15613,
    "h": 297.9
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#4D2286
secondary
#89B64E
accent
#E3459F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2286

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

Preview Lab → · Contrast checker → · Palette generator →

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