#4D1687#4D1687

#4D1687 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.170 H 299.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4D1687
RGBrgb(77, 22, 135)
HSLhsl(269, 72%, 31%)
HSVhsv(269, 84%, 53%)
CMYKcmyk(43%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.34, 46.96, -51.73)
CIE-LCHlch(23.34, 69.87, 312.23°)
OKLaboklab(36.08% 0.0833 -0.1481)
OKLCHoklch(36.08% 0.17 299.4)
XYZxyz(7.7195, 3.9008, 23.2632)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1687 #508716
analogous
#161787 #4D1687 #851687
triadic
#4D1687 #874D16 #16874D
tetradic
#4D1687 #871617 #508716 #168785
square
#4D1687 #871617 #508716 #168785
split-complementary
#4D1687 #878516 #178716
monochromatic
#11051E #2F0D52 #4D1687 #6B1FBC #8939DF

Accessibility & contrast

On white

11.80
#4D1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1687
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1687#FFFFFF#000000##FFFFFF
##4D16871.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3F3650
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1687;
/* rgb */ color: rgb(77, 22, 135);
/* oklch */ color: oklch(36.1% 0.170 299.4);
Tailwind
colors: {
  custom: {
    50: '#855bab',
    500: '#4d1687',
    950: '#000000',
  },
}
SCSS
$custom: #4d1687;
$custom-light: #855bab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1687",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 269.204,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.16987,
    "h": 299.4
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#4D1687
secondary
#7EBB3E
accent
#EF3996
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1687

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

Preview Lab → · Contrast checker → · Palette generator →

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