#4D188D#4D188D

#4D188D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.174 H 297.2°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4D188D
RGBrgb(77, 24, 141)
HSLhsl(267, 71%, 32%)
HSVhsv(267, 83%, 55%)
CMYKcmyk(45.4%, 83%, 0%, 44.7%)
CIE-LABlab(24.17, 47.71, -54.12)
CIE-LCHlch(24.17, 72.15, 311.40°)
OKLaboklab(36.83% 0.0798 -0.1551)
OKLCHoklch(36.83% 0.174 297.2)
XYZxyz(8.1937, 4.1540, 25.5642)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D188D #588D18
analogous
#181E8D #4D188D #87188D
triadic
#4D188D #8D4D18 #188D4D
tetradic
#4D188D #8D181E #588D18 #188D87
square
#4D188D #8D181E #588D18 #188D87
split-complementary
#4D188D #8D8718 #1E8D18
monochromatic
#140624 #300F59 #4D188D #6A21C1 #8841DF

Accessibility & contrast

On white

11.47
#4D188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D188D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D188D#FFFFFF#000000##FFFFFF
##4D188D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3C3A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d188d;
/* rgb */ color: rgb(77, 24, 141);
/* oklch */ color: oklch(36.8% 0.174 297.2);
Tailwind
colors: {
  custom: {
    50: '#865daf',
    500: '#4d188d',
    950: '#000000',
  },
}
SCSS
$custom: #4d188d;
$custom-light: #865daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d188d",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 267.179,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.17437,
    "h": 297.2
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#4D188D
secondary
#86BF42
accent
#EE3A9C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D188D

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

Preview Lab → · Contrast checker → · Palette generator →

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