#4D187C#4D187C

#4D187C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.156 H 303.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4D187C
RGBrgb(77, 24, 124)
HSLhsl(272, 68%, 29%)
HSVhsv(272, 81%, 49%)
CMYKcmyk(37.9%, 80.6%, 0%, 51.4%)
CIE-LABlab(22.61, 43.42, -45.99)
CIE-LCHlch(22.61, 63.25, 313.35°)
OKLaboklab(35.25% 0.0851 -0.1312)
OKLCHoklch(35.25% 0.156 303)
XYZxyz(7.0244, 3.6863, 19.4063)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D187C #477C18
analogous
#1B187C #4D187C #7C1879
triadic
#4D187C #7C4D18 #187C4D
tetradic
#4D187C #7C1B18 #477C18 #18797C
square
#4D187C #7C1B18 #477C18 #18797C
split-complementary
#4D187C #797C18 #187C1B
monochromatic
#10051A #2D0E49 #4D187C #6D22AF #8C36D8

Accessibility & contrast

On white

12.09
#4D187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D187C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D187C#FFFFFF#000000##FFFFFF
##4D187C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#43324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d187c;
/* rgb */ color: rgb(77, 24, 124);
/* oklch */ color: oklch(35.3% 0.156 303.0);
Tailwind
colors: {
  custom: {
    50: '#845ca3',
    500: '#4d187c',
    950: '#000000',
  },
}
SCSS
$custom: #4d187c;
$custom-light: #845ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d187c",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 271.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35254,
    "c": 0.15638,
    "h": 303
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#4D187C
secondary
#74B13F
accent
#EA3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D187C

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

Preview Lab → · Contrast checker → · Palette generator →

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