#4D187B#4D187B

#4D187B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.155 H 303.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4D187B
RGBrgb(77, 24, 123)
HSLhsl(272, 67%, 29%)
HSVhsv(272, 80%, 48%)
CMYKcmyk(37.4%, 80.5%, 0%, 51.8%)
CIE-LABlab(22.52, 43.17, -45.50)
CIE-LCHlch(22.52, 62.72, 313.50°)
OKLaboklab(35.17% 0.0854 -0.1298)
OKLCHoklch(35.17% 0.155 303.3)
XYZxyz(6.9615, 3.6611, 19.0750)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D187B #467B18
analogous
#1C187B #4D187B #7B1878
triadic
#4D187B #7B4D18 #187B4D
tetradic
#4D187B #7B1C18 #467B18 #18787B
square
#4D187B #7B1C18 #467B18 #18787B
split-complementary
#4D187B #787B18 #187B1C
monochromatic
#10051A #2D0E48 #4D187B #6D22AE #8C36D8

Accessibility & contrast

On white

12.12
#4D187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D187B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D187B#FFFFFF#000000##FFFFFF
##4D187B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#443249
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d187b;
/* rgb */ color: rgb(77, 24, 123);
/* oklch */ color: oklch(35.2% 0.155 303.3);
Tailwind
colors: {
  custom: {
    50: '#845ca2',
    500: '#4d187b',
    950: '#000000',
  },
}
SCSS
$custom: #4d187b;
$custom-light: #845ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d187b",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 272.121,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.15533,
    "h": 303.3
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#4D187B
secondary
#73B03F
accent
#EA3E8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D187B

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

Preview Lab → · Contrast checker → · Palette generator →

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