#4D1670#4D1670

#4D1670 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.146 H 308.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#4D1670
RGBrgb(77, 22, 112)
HSLhsl(277, 67%, 26%)
HSVhsv(277, 80%, 44%)
CMYKcmyk(31.2%, 80.4%, 0%, 56.1%)
CIE-LABlab(21.29, 41.32, -40.45)
CIE-LCHlch(21.29, 57.82, 315.61°)
OKLaboklab(34.01% 0.09 -0.1149)
OKLCHoklch(34.01% 0.146 308.1)
XYZxyz(6.2715, 3.3215, 15.6368)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1670 #397016
analogous
#201670 #4D1670 #701666
triadic
#4D1670 #704D16 #16704D
tetradic
#4D1670 #702016 #397016 #166670
square
#4D1670 #702016 #397016 #166670
split-complementary
#4D1670 #667016 #167020
monochromatic
#12051A #2A0C3D #4D1670 #7020A3 #932BD5

Accessibility & contrast

On white

12.62
#4D1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1670
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1670#FFFFFF#000000##FFFFFF
##4D16701.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#472C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d1670;
/* rgb */ color: rgb(77, 22, 112);
/* oklch */ color: oklch(34.0% 0.146 308.1);
Tailwind
colors: {
  custom: {
    50: '#835a9a',
    500: '#4d1670',
    950: '#000000',
  },
}
SCSS
$custom: #4d1670;
$custom-light: #835a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1670",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 276.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34009,
    "c": 0.14596,
    "h": 308.1
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#4D1670
secondary
#65A63C
accent
#EA3E81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1670

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

Preview Lab → · Contrast checker → · Palette generator →

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