#4D1674#4D1674

#4D1674 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.150 H 306.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#4D1674
RGBrgb(77, 22, 116)
HSLhsl(275, 68%, 27%)
HSVhsv(275, 81%, 45%)
CMYKcmyk(33.6%, 81%, 0%, 54.5%)
CIE-LABlab(21.63, 42.28, -42.47)
CIE-LCHlch(21.63, 59.93, 314.87°)
OKLaboklab(34.35% 0.089 -0.1209)
OKLCHoklch(34.35% 0.15 306.4)
XYZxyz(6.4992, 3.4126, 16.8359)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1674 #3D7416
analogous
#1E1674 #4D1674 #74166C
triadic
#4D1674 #744D16 #16744D
tetradic
#4D1674 #741E16 #3D7416 #166C74
square
#4D1674 #741E16 #3D7416 #166C74
split-complementary
#4D1674 #6C7416 #16741E
monochromatic
#11051A #2B0C41 #4D1674 #6F20A7 #912DD7

Accessibility & contrast

On white

12.48
#4D1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1674
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1674#FFFFFF#000000##FFFFFF
##4D16741.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#462E45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1674;
/* rgb */ color: rgb(77, 22, 116);
/* oklch */ color: oklch(34.4% 0.150 306.4);
Tailwind
colors: {
  custom: {
    50: '#835a9d',
    500: '#4d1674',
    950: '#000000',
  },
}
SCSS
$custom: #4d1674;
$custom-light: #835a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1674",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 275.106,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34352,
    "c": 0.15011,
    "h": 306.4
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#4D1674
secondary
#6AAA3C
accent
#EB3D85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1674

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

Preview Lab → · Contrast checker → · Palette generator →

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