#4D187D#4D187D

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

Color values

HEX#4D187D
RGBrgb(77, 24, 125)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 49%)
CMYKcmyk(38.4%, 80.8%, 0%, 51%)
CIE-LABlab(22.69, 43.67, -46.48)
CIE-LCHlch(22.69, 63.78, 313.21°)
OKLaboklab(35.34% 0.0848 -0.1327)
OKLCHoklch(35.34% 0.157 302.6)
XYZxyz(7.0880, 3.7117, 19.7411)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D187D #487D18
analogous
#1B187D #4D187D #7D187B
triadic
#4D187D #7D4D18 #187D4D
tetradic
#4D187D #7D1B18 #487D18 #187B7D
square
#4D187D #7D1B18 #487D18 #187B7D
split-complementary
#4D187D #7B7D18 #187D1B
monochromatic
#10051A #2D0E4A #4D187D #6D22B0 #8C37D9

Accessibility & contrast

On white

12.05
#4D187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D187D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D187D#FFFFFF#000000##FFFFFF
##4D187D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#43334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d187d;
/* rgb */ color: rgb(77, 24, 125);
/* oklch */ color: oklch(35.3% 0.157 302.6);
Tailwind
colors: {
  custom: {
    50: '#845ca3',
    500: '#4d187d',
    950: '#000000',
  },
}
SCSS
$custom: #4d187d;
$custom-light: #845ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d187d",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 271.485,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35343,
    "c": 0.15745,
    "h": 302.6
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#4D187D
secondary
#76B23F
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D187D

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

Preview Lab → · Contrast checker → · Palette generator →

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