#4D2285#4D2285

#4D2285 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.155 H 298.3°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4D2285
RGBrgb(77, 34, 133)
HSLhsl(266, 59%, 33%)
HSVhsv(266, 74%, 52%)
CMYKcmyk(42.1%, 74.4%, 0%, 47.8%)
CIE-LABlab(25.00, 41.16, -47.77)
CIE-LCHlch(25.00, 63.06, 310.75°)
OKLaboklab(37.18% 0.0734 -0.1365)
OKLCHoklch(37.18% 0.155 298.3)
XYZxyz(7.8651, 4.4152, 22.6236)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2285 #5A8522
analogous
#222885 #4D2285 #7E2285
triadic
#4D2285 #854D22 #22854D
tetradic
#4D2285 #852228 #5A8522 #22857E
square
#4D2285 #852228 #5A8522 #22857E
split-complementary
#4D2285 #857E22 #288522
monochromatic
#150924 #311654 #4D2285 #692EB6 #884FD2

Accessibility & contrast

On white

11.15
#4D2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2285
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2285#FFFFFF#000000##FFFFFF
##4D22851.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#3F3B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2285;
/* rgb */ color: rgb(77, 34, 133);
/* oklch */ color: oklch(37.2% 0.155 298.3);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4d2285',
    950: '#000000',
  },
}
SCSS
$custom: #4d2285;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2285",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 266.061,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.15497,
    "h": 298.3
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#4D2285
secondary
#88B64D
accent
#E2459E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2285

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

Preview Lab → · Contrast checker → · Palette generator →

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