#4D1B68#4D1B68

#4D1B68 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.131 H 311.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#4D1B68
RGBrgb(77, 27, 104)
HSLhsl(279, 59%, 26%)
HSVhsv(279, 74%, 41%)
CMYKcmyk(26%, 74%, 0%, 59.2%)
CIE-LABlab(21.44, 37.18, -35.01)
CIE-LCHlch(21.44, 51.07, 316.72°)
OKLaboklab(33.91% 0.0862 -0.099)
OKLCHoklch(33.91% 0.131 311.1)
XYZxyz(5.9507, 3.3613, 13.4293)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B68 #36681B
analogous
#261B68 #4D1B68 #681B5C
triadic
#4D1B68 #684D1B #1B684D
tetradic
#4D1B68 #68261B #36681B #1B5C68
square
#4D1B68 #68261B #36681B #1B5C68
split-complementary
#4D1B68 #5C681B #1B6826
monochromatic
#120618 #290E37 #4D1B68 #712899 #9534C9

Accessibility & contrast

On white

12.56
#4D1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4D1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B68
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B68#FFFFFF#000000##FFFFFF
##4D1B681.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#103466
Tritanopia (blue-blind)
#4A2C3F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d1b68;
/* rgb */ color: rgb(77, 27, 104);
/* oklch */ color: oklch(33.9% 0.131 311.1);
Tailwind
colors: {
  custom: {
    50: '#825c94',
    500: '#4d1b68',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b68;
$custom-light: #825c94;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b68",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 278.961,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33914,
    "c": 0.13124,
    "h": 311.1
  },
  "luminance": 0.03361
}

Semantic roles & 50–950 ramp

primary
#4D1B68
secondary
#629D42
accent
#E2467D
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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