#4D1B97#4D1B97

#4D1B97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.182 H 294.0°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#4D1B97
RGBrgb(77, 27, 151)
HSLhsl(264, 70%, 35%)
HSVhsv(264, 82%, 59%)
CMYKcmyk(49%, 82.1%, 0%, 40.8%)
CIE-LABlab(25.55, 49.11, -58.04)
CIE-LCHlch(25.55, 76.03, 310.24°)
OKLaboklab(38.07% 0.0742 -0.1666)
OKLCHoklch(38.07% 0.182 294)
XYZxyz(9.0369, 4.5957, 29.6831)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B97 #65971B
analogous
#1B2797 #4D1B97 #8B1B97
triadic
#4D1B97 #974D1B #1B974D
tetradic
#4D1B97 #971B27 #65971B #1B978B
square
#4D1B97 #971B27 #65971B #1B978B
split-complementary
#4D1B97 #978B1B #27971B
monochromatic
#18082F #331263 #4D1B97 #6724CB #884DDF

Accessibility & contrast

On white

10.94
#4D1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B97
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B97#FFFFFF#000000##FFFFFF
##4D1B971.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#363F5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1b97;
/* rgb */ color: rgb(77, 27, 151);
/* oklch */ color: oklch(38.1% 0.182 294.0);
Tailwind
colors: {
  custom: {
    50: '#875fb7',
    500: '#4d1b97',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b97;
$custom-light: #875fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b97",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 264.194,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38074,
    "c": 0.18236,
    "h": 294
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#4D1B97
secondary
#92C14C
accent
#EC3BA5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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