#4D1B7B#4D1B7B

#4D1B7B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.152 H 302.9°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4D1B7B
RGBrgb(77, 27, 123)
HSLhsl(271, 64%, 29%)
HSVhsv(271, 78%, 48%)
CMYKcmyk(37.4%, 78%, 0%, 51.8%)
CIE-LABlab(22.97, 41.87, -44.76)
CIE-LCHlch(22.97, 61.29, 313.09°)
OKLaboklab(35.48% 0.0826 -0.1276)
OKLCHoklch(35.48% 0.152 302.9)
XYZxyz(7.0268, 3.7917, 19.0967)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B7B #497B1B
analogous
#1D1B7B #4D1B7B #7B1B79
triadic
#4D1B7B #7B4D1B #1B7B4D
tetradic
#4D1B7B #7B1D1B #497B1B #1B797B
square
#4D1B7B #7B1D1B #497B1B #1B797B
split-complementary
#4D1B7B #797B1B #1B7B1D
monochromatic
#100619 #2E1049 #4D1B7B #6C26AD #8B3CD4

Accessibility & contrast

On white

11.94
#4D1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B7B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B7B#FFFFFF#000000##FFFFFF
##4D1B7B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#43334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1b7b;
/* rgb */ color: rgb(77, 27, 123);
/* oklch */ color: oklch(35.5% 0.152 302.9);
Tailwind
colors: {
  custom: {
    50: '#845da2',
    500: '#4d1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b7b;
$custom-light: #845da2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b7b",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 271.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35483,
    "c": 0.15201,
    "h": 302.9
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#4D1B7B
secondary
#77AF43
accent
#E74190
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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