#4D188E#4D188E

#4D188E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.175 H 296.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4D188E
RGBrgb(77, 24, 142)
HSLhsl(267, 71%, 33%)
HSVhsv(267, 83%, 56%)
CMYKcmyk(45.8%, 83.1%, 0%, 44.3%)
CIE-LABlab(24.27, 47.97, -54.58)
CIE-LCHlch(24.27, 72.66, 311.31°)
OKLaboklab(36.92% 0.0794 -0.1564)
OKLCHoklch(36.92% 0.175 296.9)
XYZxyz(8.2684, 4.1839, 25.9579)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D188E #598E18
analogous
#181E8E #4D188E #88188E
triadic
#4D188E #8E4D18 #188E4D
tetradic
#4D188E #8E181E #598E18 #188E88
square
#4D188E #8E181E #598E18 #188E88
split-complementary
#4D188E #8E8818 #1E8E18
monochromatic
#140625 #310F5A #4D188E #6921C2 #8841DF

Accessibility & contrast

On white

11.43
#4D188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D188E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D188E#FFFFFF#000000##FFFFFF
##4D188E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3B3A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d188e;
/* rgb */ color: rgb(77, 24, 142);
/* oklch */ color: oklch(36.9% 0.175 296.9);
Tailwind
colors: {
  custom: {
    50: '#865db0',
    500: '#4d188e',
    950: '#000000',
  },
}
SCSS
$custom: #4d188e;
$custom-light: #865db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d188e",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 266.949,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36922,
    "c": 0.17542,
    "h": 296.9
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#4D188E
secondary
#87C042
accent
#EE3A9D
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D188E

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

Preview Lab → · Contrast checker → · Palette generator →

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