#4D1876#4D1876

#4D1876 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.150 H 305.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4D1876
RGBrgb(77, 24, 118)
HSLhsl(274, 66%, 28%)
HSVhsv(274, 80%, 46%)
CMYKcmyk(34.7%, 79.7%, 0%, 53.7%)
CIE-LABlab(22.09, 41.94, -43.01)
CIE-LCHlch(22.09, 60.07, 314.28°)
OKLaboklab(34.73% 0.0867 -0.1225)
OKLCHoklch(34.73% 0.15 305.3)
XYZxyz(6.6565, 3.5391, 17.4685)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1876 #417618
analogous
#1E1876 #4D1876 #761870
triadic
#4D1876 #764D18 #18764D
tetradic
#4D1876 #761E18 #417618 #187076
square
#4D1876 #761E18 #417618 #187076
split-complementary
#4D1876 #707618 #18761E
monochromatic
#110519 #2C0E43 #4D1876 #6E22A9 #8F33D5

Accessibility & contrast

On white

12.30
#4D1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1876
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1876#FFFFFF#000000##FFFFFF
##4D18761.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#453046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1876;
/* rgb */ color: rgb(77, 24, 118);
/* oklch */ color: oklch(34.7% 0.150 305.3);
Tailwind
colors: {
  custom: {
    50: '#835b9e',
    500: '#4d1876',
    950: '#000000',
  },
}
SCSS
$custom: #4d1876;
$custom-light: #835b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1876",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 273.83,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34727,
    "c": 0.15003,
    "h": 305.3
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#4D1876
secondary
#6EAB3F
accent
#E93F89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1876

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

Preview Lab → · Contrast checker → · Palette generator →

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