#4D1874#4D1874

#4D1874 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.148 H 306.1°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#4D1874
RGBrgb(77, 24, 116)
HSLhsl(275, 66%, 27%)
HSVhsv(275, 79%, 45%)
CMYKcmyk(33.6%, 79.3%, 0%, 54.5%)
CIE-LABlab(21.92, 41.45, -42.00)
CIE-LCHlch(21.92, 59.01, 314.62°)
OKLaboklab(34.56% 0.0872 -0.1195)
OKLCHoklch(34.56% 0.148 306.1)
XYZxyz(6.5389, 3.4921, 16.8492)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1874 #3F7418
analogous
#1F1874 #4D1874 #74186D
triadic
#4D1874 #744D18 #18744D
tetradic
#4D1874 #741F18 #3F7418 #186D74
square
#4D1874 #741F18 #3F7418 #186D74
split-complementary
#4D1874 #6D7418 #18741F
monochromatic
#110519 #2B0E41 #4D1874 #6F22A7 #9032D5

Accessibility & contrast

On white

12.36
#4D1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1874
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1874#FFFFFF#000000##FFFFFF
##4D18741.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#462F45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1874;
/* rgb */ color: rgb(77, 24, 116);
/* oklch */ color: oklch(34.6% 0.148 306.1);
Tailwind
colors: {
  custom: {
    50: '#835b9d',
    500: '#4d1874',
    950: '#000000',
  },
}
SCSS
$custom: #4d1874;
$custom-light: #835b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1874",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 274.565,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34555,
    "c": 0.1479,
    "h": 306.1
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#4D1874
secondary
#6CA93F
accent
#E93F87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1874

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

Preview Lab → · Contrast checker → · Palette generator →

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