#4D188F#4D188F

#4D188F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.176 H 296.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4D188F
RGBrgb(77, 24, 143)
HSLhsl(267, 71%, 33%)
HSVhsv(267, 83%, 56%)
CMYKcmyk(46.2%, 83.2%, 0%, 43.9%)
CIE-LABlab(24.37, 48.22, -55.04)
CIE-LCHlch(24.37, 73.18, 311.22°)
OKLaboklab(37.02% 0.0791 -0.1578)
OKLCHoklch(37.02% 0.176 296.6)
XYZxyz(8.3438, 4.2140, 26.3551)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D188F #5A8F18
analogous
#181E8F #4D188F #88188F
triadic
#4D188F #8F4D18 #188F4D
tetradic
#4D188F #8F181E #5A8F18 #188F88
square
#4D188F #8F181E #5A8F18 #188F88
split-complementary
#4D188F #8F8818 #1E8F18
monochromatic
#150626 #310F5B #4D188F #6921C3 #8842DF

Accessibility & contrast

On white

11.40
#4D188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D188F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D188F#FFFFFF#000000##FFFFFF
##4D188F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#3B3B55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d188f;
/* rgb */ color: rgb(77, 24, 143);
/* oklch */ color: oklch(37.0% 0.176 296.6);
Tailwind
colors: {
  custom: {
    50: '#865db1',
    500: '#4d188f',
    950: '#000000',
  },
}
SCSS
$custom: #4d188f;
$custom-light: #865db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d188f",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 266.723,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37019,
    "c": 0.17648,
    "h": 296.6
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#4D188F
secondary
#88C043
accent
#EE3A9E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D188F

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

Preview Lab → · Contrast checker → · Palette generator →

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