#4D1BA1#4D1BA1

#4D1BA1 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.1% C 0.193 H 291.5°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4D1BA1
RGBrgb(77, 27, 161)
HSLhsl(262, 71%, 37%)
HSVhsv(262, 83%, 63%)
CMYKcmyk(52.2%, 83.2%, 0%, 36.9%)
CIE-LABlab(26.55, 51.73, -62.52)
CIE-LCHlch(26.55, 81.15, 309.61°)
OKLaboklab(39.06% 0.0706 -0.1797)
OKLCHoklch(39.06% 0.193 291.5)
XYZxyz(9.8837, 4.9345, 34.1430)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1BA1 #6FA11B
analogous
#1B2CA1 #4D1BA1 #901BA1
triadic
#4D1BA1 #A14D1B #1BA14D
tetradic
#4D1BA1 #A11B2C #6FA11B #1BA190
square
#4D1BA1 #A11B2C #6FA11B #1BA190
split-complementary
#4D1BA1 #A1901B #2CA11B
monochromatic
#1B0938 #34126D #4D1BA1 #6624D5 #8954E2

Accessibility & contrast

On white

10.57
#4D1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1BA1
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1BA1#FFFFFF#000000##FFFFFF
##4D1BA11.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#2F4460
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d1ba1;
/* rgb */ color: rgb(77, 27, 161);
/* oklch */ color: oklch(39.1% 0.193 291.5);
Tailwind
colors: {
  custom: {
    50: '#895fbe',
    500: '#4d1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #4d1ba1;
$custom-light: #895fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1ba1",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 262.388,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39063,
    "c": 0.19308,
    "h": 291.5
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#4D1BA1
secondary
#9AC552
accent
#EE3AAB
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #4D1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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