#4D187F#4D187F

#4D187F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.160 H 301.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4D187F
RGBrgb(77, 24, 127)
HSLhsl(271, 68%, 30%)
HSVhsv(271, 81%, 50%)
CMYKcmyk(39.4%, 81.1%, 0%, 50.2%)
CIE-LABlab(22.87, 44.17, -47.46)
CIE-LCHlch(22.87, 64.83, 312.95°)
OKLaboklab(35.52% 0.0842 -0.1355)
OKLCHoklch(35.52% 0.16 301.9)
XYZxyz(7.2170, 3.7633, 20.4207)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D187F #4A7F18
analogous
#1A187F #4D187F #7F187E
triadic
#4D187F #7F4D18 #187F4D
tetradic
#4D187F #7F1A18 #4A7F18 #187E7F
square
#4D187F #7F1A18 #4A7F18 #187E7F
split-complementary
#4D187F #7E7F18 #187F1A
monochromatic
#10051A #2E0E4C #4D187F #6C22B2 #8B38D9

Accessibility & contrast

On white

11.98
#4D187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D187F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D187F#FFFFFF#000000##FFFFFF
##4D187F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#42344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d187f;
/* rgb */ color: rgb(77, 24, 127);
/* oklch */ color: oklch(35.5% 0.160 301.9);
Tailwind
colors: {
  custom: {
    50: '#845ca5',
    500: '#4d187f',
    950: '#000000',
  },
}
SCSS
$custom: #4d187f;
$custom-light: #845ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d187f",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 270.874,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35523,
    "c": 0.15956,
    "h": 301.9
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#4D187F
secondary
#78B33F
accent
#EB3D91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D187F

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

Preview Lab → · Contrast checker → · Palette generator →

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