#4D1895#4D1895

#4D1895 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.183 H 294.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4D1895
RGBrgb(77, 24, 149)
HSLhsl(265, 72%, 34%)
HSVhsv(265, 84%, 58%)
CMYKcmyk(48.3%, 83.9%, 0%, 41.6%)
CIE-LABlab(24.95, 49.76, -57.79)
CIE-LCHlch(24.95, 76.26, 310.73°)
OKLaboklab(37.6% 0.0769 -0.1658)
OKLCHoklch(37.6% 0.183 294.9)
XYZxyz(8.8105, 4.4007, 28.8132)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1895 #609518
analogous
#182295 #4D1895 #8C1895
triadic
#4D1895 #954D18 #18954D
tetradic
#4D1895 #951822 #609518 #18958C
square
#4D1895 #951822 #609518 #18958C
split-complementary
#4D1895 #958C18 #229518
monochromatic
#17072C #321060 #4D1895 #6820CA #8846E1

Accessibility & contrast

On white

11.17
#4D1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1895
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1895#FFFFFF#000000##FFFFFF
##4D18951.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#373D58
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1895;
/* rgb */ color: rgb(77, 24, 149);
/* oklch */ color: oklch(37.6% 0.183 294.9);
Tailwind
colors: {
  custom: {
    50: '#875db5',
    500: '#4d1895',
    950: '#000000',
  },
}
SCSS
$custom: #4d1895;
$custom-light: #875db5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1895",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 265.44,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37602,
    "c": 0.18281,
    "h": 294.9
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#4D1895
secondary
#8EC246
accent
#EF39A2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1895

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

Preview Lab → · Contrast checker → · Palette generator →

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