#4D188C#4D188C

#4D188C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.173 H 297.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4D188C
RGBrgb(77, 24, 140)
HSLhsl(267, 71%, 32%)
HSVhsv(267, 83%, 55%)
CMYKcmyk(45%, 82.9%, 0%, 45.1%)
CIE-LABlab(24.08, 47.46, -53.65)
CIE-LCHlch(24.08, 71.63, 311.49°)
OKLaboklab(36.73% 0.0801 -0.1537)
OKLCHoklch(36.73% 0.173 297.5)
XYZxyz(8.1196, 4.1243, 25.1741)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D188C #578C18
analogous
#181D8C #4D188C #87188C
triadic
#4D188C #8C4D18 #188C4D
tetradic
#4D188C #8C181D #578C18 #188C87
square
#4D188C #8C181D #578C18 #188C87
split-complementary
#4D188C #8C8718 #1D8C18
monochromatic
#140624 #300F58 #4D188C #6A21C0 #8840DE

Accessibility & contrast

On white

11.51
#4D188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D188C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D188C#FFFFFF#000000##FFFFFF
##4D188C1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#3C3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d188c;
/* rgb */ color: rgb(77, 24, 140);
/* oklch */ color: oklch(36.7% 0.173 297.5);
Tailwind
colors: {
  custom: {
    50: '#865daf',
    500: '#4d188c',
    950: '#000000',
  },
}
SCSS
$custom: #4d188c;
$custom-light: #865daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d188c",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 267.414,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36731,
    "c": 0.17332,
    "h": 297.5
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#4D188C
secondary
#85BF41
accent
#ED3A9C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D188C

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

Preview Lab → · Contrast checker → · Palette generator →

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