#4D1B87#4D1B87

#4D1B87 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.165 H 298.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4D1B87
RGBrgb(77, 27, 135)
HSLhsl(268, 67%, 32%)
HSVhsv(268, 80%, 53%)
CMYKcmyk(43%, 80%, 0%, 47.1%)
CIE-LABlab(24.03, 44.95, -50.60)
CIE-LCHlch(24.03, 67.68, 311.61°)
OKLaboklab(36.56% 0.0793 -0.1448)
OKLCHoklch(36.56% 0.165 298.7)
XYZxyz(7.8246, 4.1108, 23.2982)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B87 #55871B
analogous
#1B1F87 #4D1B87 #831B87
triadic
#4D1B87 #874D1B #1B874D
tetradic
#4D1B87 #871B1F #55871B #1B8783
square
#4D1B87 #871B1F #55871B #1B8783
split-complementary
#4D1B87 #87831B #1F871B
monochromatic
#130721 #301154 #4D1B87 #6A25BA #8943D9

Accessibility & contrast

On white

11.52
#4D1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B87
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B87#FFFFFF#000000##FFFFFF
##4D1B871.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#3F3851
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1b87;
/* rgb */ color: rgb(77, 27, 135);
/* oklch */ color: oklch(36.6% 0.165 298.7);
Tailwind
colors: {
  custom: {
    50: '#855eab',
    500: '#4d1b87',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b87;
$custom-light: #855eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b87",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 267.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36557,
    "c": 0.16508,
    "h": 298.7
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#4D1B87
secondary
#83BA44
accent
#EA3E9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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